Set this interval from a canonical seconds/`nanoseconds` pair.
Synopsis
Declared in <bsls_timeinterval.h>
constexpr
void
setIntervalRaw(
bsls::Types::Int64 seconds,
int nanoseconds = 0);
Description
Set this time interval to have the value given by the sum of the specified integral number of seconds, and the optionally specified integral number of nanoseconds, where seconds and nanoseconds form a canonical representation of a time interval (see {Representation}). If unspecified, nanoseconds is 0. The behavior is undefined unless ‐999,999,999 <= nanoseconds <= +999,999,999 and seconds and nanoseconds are either both non‐negative or both non‐positive. Note that this function provides a subset of the defined behavior of setInterval chosen to minimize runtime performance cost.
Parameters
Name |
Description |
seconds |
whole seconds component |
nanoseconds |
nanoseconds component |
Created with MrDocs