Slight adjustements to time keeping
TOD draft: the interval unir are not ms*4096, but ms*4100. That small error adds up in time and causes the TOD to diverge from the wall clock.
Supressed compiler warning
Correct TOD drifting due to loss of precission