A class exposing system resources usage.
More...
#include <yateclass.h>
|
enum | Type { WallTime
, UserTime
, KernelTime
} |
|
A class exposing system resources usage.
The SysUsage class allows collecting some statistics about engine's usage of system resources
◆ Type
Type of time usage requested
◆ init()
Initialize the system start variable
◆ msecRunTime()
static u_int64_t msecRunTime |
( |
Type |
type = WallTime | ) |
|
|
static |
Get the program's running time in milliseconds
- Parameters
-
type | Type of running time requested |
- Returns
- Time in milliseconds since the start of the program
◆ runTime()
static double runTime |
( |
Type |
type = WallTime | ) |
|
|
static |
Get the program's running time in seconds
- Parameters
-
type | Type of running time requested |
- Returns
- Time in seconds since the start of the program
◆ secRunTime()
static u_int32_t secRunTime |
( |
Type |
type = WallTime | ) |
|
|
static |
Get the program's running time in seconds
- Parameters
-
type | Type of running time requested |
- Returns
- Time in seconds since the start of the program
◆ startTime()
static u_int64_t startTime |
( |
| ) |
|
|
static |
Get the wall time used as start for the usage time
- Returns
- Time of the first direct or implicit call of init()
◆ usecRunTime()
static u_int64_t usecRunTime |
( |
Type |
type = WallTime | ) |
|
|
static |
Get the program's running time in microseconds
- Parameters
-
type | Type of running time requested |
- Returns
- Time in microseconds since the start of the program
The documentation for this class was generated from the following file: