class SysUsage

A class exposing system resources usage. More...

Full nameTelEngine::SysUsage
Definition#include <yateclass.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Static Methods


Detailed Description

The SysUsage class allows collecting some statistics about engine's usage of system resources

enum Type { WallTime, UserTime, KernelTime }

Type

Type of time usage requested

void  init ()

init

[static]

Initialize the system start variable

u_int64_t  startTime ()

startTime

[static]

Get the wall time used as start for the usage time

Returns: Time of the first direct or implicit call of init()

u_int64_t  usecRunTime (Type type = WallTime)

usecRunTime

[static]

Get the program's running time in microseconds

Parameters:
typeType of running time requested

Returns: Time in microseconds since the start of the program

u_int64_t  msecRunTime (Type type = WallTime)

msecRunTime

[static]

Get the program's running time in milliseconds

Parameters:
typeType of running time requested

Returns: Time in milliseconds since the start of the program

u_int32_t  secRunTime (Type type = WallTime)

secRunTime

[static]

Get the program's running time in seconds

Parameters:
typeType of running time requested

Returns: Time in seconds since the start of the program

double  runTime (Type type = WallTime)

runTime

[static]

Get the program's running time in seconds

Parameters:
typeType of running time requested

Returns: Time in seconds since the start of the program


Generated by: paulc on bussard on Fri Dec 21 16:28:34 2012, using kdoc 2.0a54.