T
Tom Shelton
Armin Zingler formulated on Sunday :
interesting... it actually might be workable.
I don't really know... I've never had to take it into account before
My guess would be no.
Am 14.02.2011 03:03, schrieb Tom Shelton:
If updating the application internal base datetime from the external
source is done in intervals in the background, latency shouldn't
be an issue.
now = datetime from last ntp update + ticks since last update
Any pitfalls?
interesting... it actually might be workable.
The only one I can think of is standby/hibernation. But if
this can be reliably handled by handling
Microsoft.Win32.SystemEvents.PowerModeChanged, this shouldn't be an issue,
too. Well, there's still a small chance that the event occurs a little too
"late". I mean, between waking up from hibernation and the occurrance of the
PowerModeChanged, our new "Now" function could have been called, and it would
return a too small value. But, a) the situation is VERY rare,
b) all datetimes are still in order and thus shouldn't harm anything.
(Is environment.tickcount reset after hibernation? )
I don't really know... I've never had to take it into account before
My guess would be no.