BloombergLP::bsls::operator""_ns

Convert the specified nanoseconds literal to a TimeInterval.

Synopsis

Declared in <bsls_timeinterval.h>

constexpr
bsls::TimeInterval
operator""_ns(unsigned long long nanoseconds);

Description

This user defined literal operator converts the specified nanoseconds value to the respective TimeInterval value. (See the "User-Defined Literals" section in the component-level documentation.)

Return Value

a TimeInterval representing the specified number of nanoseconds

Parameters

NameDescription
nanosecondsnanoseconds literal