Boost logo

Boost :

From: William E. Kempf (wekempf_at_[hidden])
Date: 2003-06-30 13:15:26


Maxim Egorushkin said:
>
> "William E. Kempf" <wekempf_at_[hidden]> wrote in message
> news:4432.167.16.75.51.1056983517.squirrel_at_frodo.kempf-ville.com...
>
>> Priorities are implemented, but still undergoing design changes, in
>> the thread_dev branch. The timer, if I understand what you want, is
>> trivial to implement portably with the current Boost.Threads
>> interfaces, but I do plan on addressing this as well.
>
> Speaking about the timer I ment something like that:
>
> typedef int milliseconds;
>
> class stopwatch
> {
> public:
> stopwatch()
> : started_(::GetTickCount())
> {}
>
> milliseconds elapsed() const
> {
> return ::GetTickCount() - started_;
> }
>
> private:
> const DWORD started_;
> };

Ahh... that's not a threading concept ;).

-- 
William E. Kempf

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk