MetaDone
|
Public Member Functions | |
Chrono () | |
Chrono | start () |
Chrono | pause () |
Chrono | reset () |
long | getElapsed (TimeUnit unit) |
boolean | isRunning () |
String | getElapsedSeconds () |
String | getElapsedMilliSeconds () |
Static Public Member Functions | |
static void | main (String[] args) |
Private Attributes | |
boolean | running |
long | t_start |
Can be used to mesure the time elapsed between events.
metadone.util.Chrono.Chrono | ( | ) |
References metadone.util.Chrono.reset().
Referenced by metadone.util.Chrono.main().
long metadone.util.Chrono.getElapsed | ( | TimeUnit | unit | ) |
Gets the elapsed time.
unit | The unit |
References metadone.util.Chrono.running, and metadone.util.Chrono.t_start.
Referenced by metadone.util.Chrono.getElapsedMilliSeconds(), metadone.util.Chrono.getElapsedSeconds(), and metadone.util.Chrono.pause().
String metadone.util.Chrono.getElapsedMilliSeconds | ( | ) |
References metadone.util.Chrono.getElapsed().
Referenced by metadone.util.Chrono.main().
String metadone.util.Chrono.getElapsedSeconds | ( | ) |
References metadone.util.Chrono.getElapsed().
Referenced by metadone.repository.kernel.jpa2.TransactionJPA2.commit(), metadone.client.actions.OpenProjectAction.createProject(), metadone.util.Chrono.main(), metadone.client.functions.importer.owl.OWLImporter.readFile(), and metadone.repository.kernel.jpa2.TransactionJPA2.rollback().
boolean metadone.util.Chrono.isRunning | ( | ) |
Indicates whether the chrono is running or paused.
References metadone.util.Chrono.running.
static void metadone.util.Chrono.main | ( | String[] | args | ) | [static] |
Chrono metadone.util.Chrono.pause | ( | ) |
Pauses the chrono, the status becomes : not started
References metadone.util.Chrono.getElapsed(), metadone.util.Chrono.running, and metadone.util.Chrono.t_start.
Referenced by metadone.repository.kernel.jpa2.TransactionJPA2.commit(), metadone.client.actions.OpenProjectAction.createProject(), metadone.util.Chrono.main(), metadone.client.functions.importer.owl.OWLImporter.readFile(), and metadone.repository.kernel.jpa2.TransactionJPA2.rollback().
Chrono metadone.util.Chrono.reset | ( | ) |
Reset the chrono, the elapsed time is set to 0.
References metadone.util.Chrono.running, and metadone.util.Chrono.t_start.
Referenced by metadone.util.Chrono.Chrono(), metadone.repository.kernel.jpa2.TransactionJPA2.commit(), metadone.client.functions.importer.owl.OWLImporter.readFile(), and metadone.repository.kernel.jpa2.TransactionJPA2.rollback().
Chrono metadone.util.Chrono.start | ( | ) |
Starts the chrono.
References metadone.util.Chrono.running, and metadone.util.Chrono.t_start.
Referenced by metadone.repository.kernel.jpa2.TransactionJPA2.begin(), metadone.repository.kernel.jpa2.TransactionJPA2.commit(), metadone.client.actions.OpenProjectAction.createProject(), metadone.util.Chrono.main(), metadone.client.functions.importer.owl.OWLImporter.readFile(), metadone.repository.kernel.jpa2.TransactionJPA2.rollback(), and metadone.repository.kernel.jpa2.TransactionJPA2.TransactionJPA2().
boolean metadone.util.Chrono.running [private] |
long metadone.util.Chrono.t_start [private] |