Measuring microseconds?

pulseIn() returns the length of a pulse in microseconds.

micros() is the equivalent of millis() but returns microseconds (with a resolution of 4 microseconds).