Can i know the pulsin founction calculate time in millisec or in micro?
Look at the top of the page, select Learning then Reference then look for pulseIn(). The Reference pages are really good for finding answers like that and it's much quicker than waiting for an answer on these forums.
Steve