Boost logo

Boost :

Subject: Re: [boost] [filesystem] Epoch of trivial_clock
From: Bjorn Reese (breese_at_[hidden])
Date: 2014-08-23 09:54:13


On 08/23/2014 02:58 PM, Rob Stewart wrote:

> That would be unstable as there's a race between the two calls to now(). It would also be unduly costly. Instead, just account for the origin differences:
>
> tp2 = tp1 + C2:: time_point()
> - C1:: time_point();

AFAIK you cannot do arithmetic operations between time_point from
different clocks.


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