
On 16/06/2010 08:06, Ion GaztaƱaga wrote:
On 16/06/2010 7:35, David M. Cotter wrote:
fyi: http://msdn.microsoft.com/en-us/library/ms724408%28VS.85%29.aspx
I don't see what you mean, we need system boot stamp not boot time. I think the answer might be WMI LastBootUpTime:
http://msdn.microsoft.com/en-us/library/aa394239%28VS.85%29.aspx
However, obtaining this is not trivial, since we need to use COM through C:
http://msdn.microsoft.com/en-us/library/aa390423%28v=VS.85%29.aspx
And if we want to avoid windows header inclusions (that's current Interprocess approach), then things are a bit more complicated. But I'm working on it,
Best,
Ion _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Or how about: long long boot_time_in_milliseconds_since_epoch = current_time_in_milliseconds_since_epoch() - GetTickCount64(); Cheers, Jon