iclim Posted July 29, 2014 Share Posted July 29, 2014 Hello, We encountered a strange issue, which I am hoping someone can shed some light on. The EPICS framework uses the clock_gettime function from to determine timestamps. However for some reason everytime after a reboot of the machine the return value of this function appears to be the time since reboot. In comparison the time () function returns the correct time in seconds since the Epoch regardless of weather the machine has been rebooted or not. We have temporarily solved this problem by calling the clock_settime function with the value returned from the time function, however if we are synchronizing from a NTP server there is the possibility for time drift. Can someone please explain this behavior ? Link to comment Share on other sites More sharing options...
Recommended Posts