Implemented pulseIn command

Added pulseIn function handler, definitions and modified time library to
support microsecond time resolution.