CTime Class Reference

Inheritance diagram for CTime:

Inheritance graph
[legend]

List of all members.


Detailed Description

class Time

Definition at line 22 of file Time.h.


Public Member Functions

 CTime (bool start=true)
 ~CTime ()
clock_t cur_runtime (bool verbose=false)
clock_t cur_runtime_diff (bool verbose=false)
double cur_runtime_diff_sec (bool verbose=false)
double start (bool verbose=false)
double cur_time_diff (bool verbose=false)
double time_diff_sec (bool verbose=false)
double stop (bool verbose=false)

Static Public Member Functions

static LONG get_runtime ()
static double get_curtime ()

Static Public Attributes

static CParallel parallel
static CIO io
static CVersion version

Protected Attributes

clock_t start_runtime
double start_time
double stop_time

Constructor & Destructor Documentation

CTime::CTime ( bool  start = true  ) 

constructor

Parameters:
start if time measurement shall be started

Definition at line 15 of file Time.cpp.

CTime::~CTime (  ) 

Definition at line 26 of file Time.cpp.


Member Function Documentation

clock_t CTime::cur_runtime ( bool  verbose = false  ) 

get current cpu runtime

Parameters:
verbose if time shall be printed
Returns:
current cpu runtime

Definition at line 30 of file Time.cpp.

clock_t CTime::cur_runtime_diff ( bool  verbose = false  ) 

get time difference between start and NOW

Parameters:
verbose if time difference shall be printed
Returns:
time difference between start and NOW

Definition at line 38 of file Time.cpp.

double CTime::cur_runtime_diff_sec ( bool  verbose = false  ) 

get time difference between start and NOW in seconds

Parameters:
verbose if time difference shall be printed
Returns:
time difference between start and NOW in seconds

Definition at line 46 of file Time.cpp.

double CTime::start ( bool  verbose = false  ) 

start the counter

Parameters:
verbose if start time shall be printed
Returns:
start time in seconds

Definition at line 56 of file Time.cpp.

double CTime::cur_time_diff ( bool  verbose = false  ) 

get time difference between start and NOW in seconds

Parameters:
verbose if time difference shall be printed
Returns:
time difference between start and NOW in seconds

Definition at line 65 of file Time.cpp.

double CTime::time_diff_sec ( bool  verbose = false  ) 

get time difference between start and stop in seconds

Parameters:
verbose if time difference shall be printed
Returns:
time difference between start and stop in seconds

Definition at line 74 of file Time.cpp.

double CTime::stop ( bool  verbose = false  ) 

stop the counter

Parameters:
verbose if stop time shall be printed
Returns:
stop time in seconds

Definition at line 83 of file Time.cpp.

static LONG CTime::get_runtime (  )  [static]

get runtime

Returns:
runtime

Definition at line 84 of file Time.h.

static double CTime::get_curtime (  )  [static]

get current time in seconds

Returns:
current time in seconds

Definition at line 94 of file Time.h.


Member Data Documentation

clock_t CTime::start_runtime [protected]

start runtime

Definition at line 105 of file Time.h.

double CTime::start_time [protected]

start time

Definition at line 108 of file Time.h.

double CTime::stop_time [protected]

stop time

Definition at line 110 of file Time.h.

CParallel CSGObject::parallel [static, inherited]

Definition at line 105 of file SGObject.h.

CIO CSGObject::io [static, inherited]

Definition at line 106 of file SGObject.h.

CVersion CSGObject::version [static, inherited]

Definition at line 107 of file SGObject.h.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation