|
Boost : |
Subject: Re: [boost] [interprocess] (Win32) shared memory totally doesn't work :(
From: Jon Payne (jpayne_at_[hidden])
Date: 2010-06-16 04:24:02
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk