Create a time interval from seconds and nanoseconds.
Synopsis
Declared in <bsls_timeinterval.h>
constexpr
TimeInterval(
bsls::Types::Int64 seconds,
int nanoseconds);
Description
Create a time interval having the value given by the sum of the specified integral number of seconds and nanoseconds. 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.
Parameters
Name |
Description |
seconds |
whole seconds component |
nanoseconds |
nanoseconds component |
Created with MrDocs