_ftime() and leap seconds
-
Hi Friends, My program has a code which calculates time passed for a perticular opertion like
Total time = End time - Start time
Here I am using _ftime() function which says that it will provide me time since midnight (00:00:00), January 1, 1970, coordinated universal time (UTC). Now my programs keeps running on a machine which uses Network Time Protocol. Here NTP is compatible of leap seconds adjustment. I heard that leap second will be inserted on Dec 31 23:59:60(GMT). Now will this break my above expression?
-
Hi Friends, My program has a code which calculates time passed for a perticular opertion like
Total time = End time - Start time
Here I am using _ftime() function which says that it will provide me time since midnight (00:00:00), January 1, 1970, coordinated universal time (UTC). Now my programs keeps running on a machine which uses Network Time Protocol. Here NTP is compatible of leap seconds adjustment. I heard that leap second will be inserted on Dec 31 23:59:60(GMT). Now will this break my above expression?
If extra time is added in between start and end, then the total time may be skewed.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch