timming a event by arduino

Isn't that what pulsein() does?
http://arduino.cc/en/Reference/PulseIn