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

This class is deprecated but kept for compatibility with older versions of SSJ. More...

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

Public Member Functions

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

This class is deprecated but kept for compatibility with older versions of SSJ.

Chrono should be used instead of ChronoSingleThread. The ChronoSingleThread class extends the AbstractChrono class and computes the CPU time for the current thread only. This is the simplest way to use chronos. Classes AbstractChrono, SystemTimeChrono, GlobalCPUTimeChrono and ThreadCPUTimeChrono provide different chronos implementations (see these classes to learn more about SSJ chronos).


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