Add the specified number of nanoseconds to this time interval.
Synopsis
Declared in <bsls_timeinterval.h>
TimeInterval&
addNanoseconds(bsls::Types::Int64 nanoseconds);
Description
Add to this time interval the specified integral number of nanoseconds, and return a reference providing modifiable access to this object. The behavior is undefined unless the total number of seconds in the resulting time interval can be represented with a 64‐bit signed integer. Note that nanoseconds may be negative.
Return Value
a reference providing modifiable access to this object
Parameters
Name |
Description |
nanoseconds |
nanoseconds to add |
Created with MrDocs