|
Boost Users : |
Subject: Re: [Boost-users] [boost] [chrono] v0.4 New thread_clock
From: Roland Bock (rbock_at_[hidden])
Date: 2010-03-09 17:30:46
vicente.botet wrote:
> Hi,
>
> sorry for the late response.
>
No problem :-)
>> Will thread_clock work for Windows as well?
>>
>
> The current implemtation works only on Posix systems providing this feature. This has allowed me to make some performances measures i needed to do, to evaluate the time spent by the measures themselves.
>
> For the moment I have not seen if this is even possible. I don't know the Windows interface at all. Maybe some Windows gurus can give me some pointers on whether this is possible and how.
>
>
>
In my former company we did this:
FILETIME creationTime;
FILETIME exitTime;
FILETIME kernelTime;
FILETIME userTime;
GetThreadTimes
(GetCurrentThread (),
&creationTime,
&exitTime,
&kernelTime,
&userTime);
Regards,
Roland
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net