Overview | Group | Tree | Graph | Index | Concepts |
An instance of IloTimer
represents a timer in a Concert
Technology model. It works like a stop watch. The timer report the CPU time.
On multi threaded environment, we summed the CPU time used by each thread.
See Also:
Constructor Summary | |
---|---|
public | IloTimer(const IloEnv env) |
Method Summary | |
---|---|
public IloEnv | getEnv() const |
public IloNum | getTime() const |
public void | reset() |
public IloNum | restart() |
public IloNum | start() |
public IloNum | stop() |
Constructor Detail |
---|
This constructor creates a timer.
Method Detail |
---|
This constructor creates an instance of the class
IloTimer
This member function returns the environment in which the invoking timer was constructed.
This member function returns the accumulated time, in seconds, since one of these conditions:
start
after
construction of the invoking timer;restart
;reset
.This member function sets the elapsed time of the invoking timer to 0.0. It also stops the clock.
This member function returns the accumulated time, resets the invoking
timer to 0.0, and starts the timer again. In other words, the member
function restart
is equivalent to the member function
reset
followed by start
.
This member function makes the invoking timer resume accumulating time. It returns the time accumulated so far.
This member function stops the invoking timer so that it no longer accumulates time.