SSJ
3.3.1
Stochastic Simulation in Java
|
Extends the AbstractChrono class to compute the total system time using Java’s builtin System.nanoTime
.
More...
Public Member Functions | |
SystemTimeChrono () | |
Constructs a new chrono object and initializes it to zero. | |
Public Member Functions inherited from AbstractChrono | |
AbstractChrono () | |
void | init () |
Initializes this AbstractChrono to zero. | |
double | getSeconds () |
Returns the CPU time in seconds used by the program since the last call to init for this AbstractChrono . More... | |
double | getMinutes () |
Returns the CPU time in minutes used by the program since the last call to init for this AbstractChrono . More... | |
double | getHours () |
Returns the CPU time in hours used by the program since the last call to init for this AbstractChrono . More... | |
String | format () |
Converts the CPU time used by the program since its last call to init for this AbstractChrono to a String in the HH:MM:SS.xx format. More... | |
Protected Member Functions | |
void | getTime (long[] tab) |
Protected Member Functions inherited from AbstractChrono | |
abstract void | getTime (long[] tab) |
Additional Inherited Members | |
Static Public Member Functions inherited from AbstractChrono | |
static String | format (double time) |
Converts the time time , given in seconds, to a String in the HH:MM:SS.xx format. More... | |
Extends the AbstractChrono class to compute the total system time using Java’s builtin System.nanoTime
.
The system can be used as a rough approximation of the CPU time taken by a program if no other tasks are executed on the host while the program is running.