Quote Originally Posted by jp185088 View Post
the input i have is in type time_t. We know we can get the hours, minutes and seconds thru localtime call. but how about the milliseconds?
I don't think time_t stores milliseconds. It may be compiler dependent, but I think in most cases it only stores seconds.
If you need more accurate time measures have a look at http://www.codeguru.com/forum/showthread.php?t=291294.