23 Aug
2014
23 Aug
'14
1:54 p.m.
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.