Question
How can you get the time in milliseconds in reference to a particular timebase (e.g. epoch)?
I want the epoch time in milliseconds (or with a milliseconds field), but the main function that is suggested out there clock_gettime() ends up as an undefined reference. I have also tried functions like gettimeofday() but it always returns zero for its usec field. Does anyone have any ideas how I can get the epoch time with milliseconds resolution? (I'm using the time.h library, but if something else is required, that would be fine also).
