Extends the AbstractChrono class to compute the wall-clock time using Java's builtin System.nanoTime. More...
Public Member Functions | |
| ChronoWall () | |
| Constructs a new chrono object and initializes it to zero. | |
| 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. | |
| double | getMinutes () |
| Returns the CPU time in minutes used by the program since the last call to init for this AbstractChrono. | |
| double | getHours () |
| Returns the CPU time in hours used by the program since the last call to init for this AbstractChrono. | |
| 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. | |
Additional Inherited Members | |
| static String | format (double time) |
| Converts the time time, given in seconds, to a String in the HH:MM:SS.xx format. | |
Extends the AbstractChrono class to compute the wall-clock time using Java's builtin System.nanoTime.
This 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.
Definition at line 35 of file ChronoWall.java.
| umontreal.ssj.util.ChronoWall.ChronoWall | ( | ) |
Constructs a new chrono object and initializes it to zero.
Definition at line 49 of file ChronoWall.java.