Class MersenneTwister.StopWatch

Object
StopWatch
All Implemented Interfaces:
MersenneTwister.Chronometer
Enclosing class:
MersenneTwister

static class MersenneTwister.StopWatch extends Object implements MersenneTwister.Chronometer
Minimal implementation of Chronometer. Measures elapsed time using the system clock.
Author:
Christoph Hauert
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) long
    Starting time
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct new stop watch and start measuring time.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Calculate elapsed time since instantiation in milliseconds.
    void
    Start/reset chronometer.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • start

      long start
      Starting time
  • Constructor Details

    • StopWatch

      public StopWatch()
      Construct new stop watch and start measuring time.
  • Method Details