i have been searching the net for 3hours now on how to solve my problem about how to extract the milliseconds from an input but still found no answers. sigh! . Im trying my luck here that maybe experts have an idea about this.

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 saw ftime, gettimeofday, clock_gettime but theyre not helping me, they all return the current time.


can you help me?

Thanks in advance.