Create a time interval from a real number of seconds.
Synopsis
Declared in <bsls_timeinterval.h>
explicit
TimeInterval(double seconds);
Description
Create a time interval having the value represented by the specified real number of seconds. The fractional part of seconds, if any, is rounded to the nearest whole number of 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.
Parameters
Name |
Description |
seconds |
interval length in seconds |
Created with MrDocs