public class GlobalCPUTimeChrono extends AbstractChrono
AbstractChrono class to compute the global CPU time used
by the Java Virtual Machine. This includes CPU time taken by any thread,
including the garbage collector, class loader, etc.
Part of this class is implemented in the C language and the
implementation is unfortunately operating system-dependent.
The C functions for the current class have been compiled on a 32-bit machine
running Linux. For a platform-independent CPU timer (valid only with Java-1.5 or later),
one should use the class ThreadCPUTimeChrono which is programmed
directly in Java.
| Constructor and Description |
|---|
GlobalCPUTimeChrono()
Constructs a Chrono object and initializes it to zero.
|
format, format, getHours, getMinutes, getSeconds, initTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.