SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | Protected Member Functions | List of all members
GlobalCPUTimeChrono Class Reference

Extends the AbstractChrono class to compute the global CPU time used by the Java Virtual Machine. More...

Inheritance diagram for GlobalCPUTimeChrono:
[legend]
Collaboration diagram for GlobalCPUTimeChrono:
[legend]

Public Member Functions

 GlobalCPUTimeChrono ()
 Constructs a 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...
 

Detailed Description

Extends the 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.


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