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. If unspecified, nanoseconds is 0. The behavior is undefined unless the total number of seconds in the resulting time interval can be represented with a 64‐bit signed integer (see isValid). Note that there is no restriction on the sign or magnitude of either argument except that they must not violate the method's preconditions.

Synopsis

Declared in <bsls_timeinterval.h>

constexpr
void
setInterval(
    bsls::Types::Int64 seconds,
    int nanoseconds = 0);

Created with MrDocs