$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [chron] time_point convertible?
From: Bjorn Reese (breese_at_[hidden])
Date: 2014-01-16 04:38:01
On 01/16/2014 06:51 AM, Oliver Kowalke wrote:
> are the time_point-types of the clock-types from boost.chrono
> convertible into each other?
>
> chrono::system_clock::time_point t = convert_fun(
> chrono::steady_clock::now() ) etc. ?
chrono::steady_clock::time_point t1 = chrono::steady_clock::now();
chrono::steady_clock::duration d1 = t1.time_since_epoch();
chrono::system_clock::duration d2 =
chrono::duration_cast<chrono::system_clock::duration>(d1);
chrono::system_clock::time_point t2(d2);