#include <Duration.hpp>
List of all members.
Detailed Description
This class represents a time interval.
Definition at line 30 of file Duration.hpp.
Constructor & Destructor Documentation
Create a duration elapsing zero seconds.
| Duration |
( |
int32_t |
sec, |
|
|
uint32_t |
nanosec = 0 | |
|
) |
| | [explicit] |
Create a duration elapsing a specific amount of time.
Member Function Documentation
| int compare |
( |
const Duration & |
that |
) |
const |
| static const Duration from_microseconds |
( |
int64_t |
microseconds |
) |
[static] |
| static const Duration from_milliseconds |
( |
int64_t |
milliseconds |
) |
[static] |
| static const Duration from_seconds |
( |
double |
seconds |
) |
[static] |
| int64_t get_in_microseconds |
( |
|
) |
const |
| int64_t get_in_milliseconds |
( |
|
) |
const |
| double get_in_seconds |
( |
|
) |
const |
| static const Duration infinite |
( |
|
) |
[static] |
| uint32_t nanosec |
( |
|
) |
const |
| void nanosec |
( |
uint32_t |
ns |
) |
|
| bool operator< |
( |
const Duration & |
that |
) |
const |
| bool operator<= |
( |
const Duration & |
that |
) |
const |
| bool operator== |
( |
const Duration & |
that |
) |
const |
| bool operator> |
( |
const Duration & |
that |
) |
const |
| bool operator>= |
( |
const Duration & |
that |
) |
const |
| void reset |
( |
int32_t |
s, |
|
|
uint32_t |
ns | |
|
) |
| | |
Reset the interval for this Duration.
- Parameters:
-
| void set_in_microseconds |
( |
int64_t |
microsec |
) |
|
| void set_in_milliseconds |
( |
int64_t |
millisec |
) |
|
| void set_in_seconds |
( |
double |
seconds |
) |
|
The documentation for this class was generated from the following file: