Nanoseconds overloads
Synopses
Declared in <absl/time/time.h>
Constructs a Duration from a floating‐point number of nanoseconds.
template<
typename T,
/* implementation-defined */ = 0>
Duration
Nanoseconds(T n);
Constructs a Duration from an integral number of nanoseconds.
template<
typename T,
/* implementation-defined */ = 0>
constexpr
Duration
Nanoseconds(T n);
Return Value
A duration of n nanoseconds.
Parameters
Name |
Description |
n |
The number of nanoseconds. |
Created with MrDocs