java.lang.Object
dev.webfx.kit.mapper.peers.javafxmedia.spi.gwtj2cl.StopWatch

public final class StopWatch extends Object
Author:
Bruno Salmon
  • Constructor Details

    • StopWatch

      public StopWatch(Supplier<Long> systemTimeGetter)
  • Method Details

    • createSystemNanoStopWatch

      public static StopWatch createSystemNanoStopWatch()
    • createSystemMillisStopWatch

      public static StopWatch createSystemMillisStopWatch()
    • getSystemTime

      public long getSystemTime()
    • getSystemTimeAtStart

      public long getSystemTimeAtStart()
    • getSystemElapsedTime

      public long getSystemElapsedTime()
    • getStopWatchElapsedTime

      public long getStopWatchElapsedTime()
    • isRunning

      public boolean isRunning()
    • isPaused

      public boolean isPaused()
    • start

      public void start()
    • startAt

      public void startAt(long initialElapsedTime)
    • pause

      public void pause()
    • resume

      public void resume()
    • restart

      public void restart()
    • togglePause

      public void togglePause()