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 ...