Return a bsls::TimeInterval having the value represented by the specified duration. Unlike the implicit conversion defined from duration defined in bsls::TimeInterval, this conversion handles floating-point-based durations as well as integral ones.
Declared in <bslmt_chronoutil.h>
template<
class REP_TYPE,
class PERIOD_TYPE>
static
bsls::TimeInterval
durationToTimeInterval(bsl::chrono::duration<REP_TYPE, PERIOD_TYPE> const& duration);