A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://umontreal-simul.github.io/ssj/docs/master/classumontreal_1_1ssj_1_1util_1_1Chrono.html below:

SSJ: Chrono Class Reference

The Chrono class extends the umontreal.ssj.util.AbstractChrono class and computes the CPU time for the current thread only. More...

void  getTime (long[] tab)   abstract void  getTime (long[] tab)  

The Chrono class extends the umontreal.ssj.util.AbstractChrono class and computes the CPU time for the current thread only.

This is the simplest way to use chronos. Classes AbstractChrono, umontreal.ssj.util.SystemTimeChrono, umontreal.ssj.util.GlobalCPUTimeChrono and umontreal.ssj.util.ThreadCPUTimeChrono provide different chronos implementations. See these classes to learn more about SSJ chronos, if problems appear with class Chrono.

◆ createForSingleThread() static Chrono createForSingleThread ( ) static

Creates a Chrono instance adapted for a program using a single thread.

Under Java 1.5, this method returns an instance of ChronoSingleThread which can measure CPU time for one thread. Under Java versions prior to 1.5, this returns an instance of this class. This method must not be used to create a timer for a multi-threaded program, because the obtained CPU times will differ depending on the used Java version.

Returns
the constructed timer.

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4