Class Time

java.lang.Object
me.wobblyyyy.pathfinder.util.Time

public class Time
extends java.lang.Object
Static time measurement utility designed to reduce the length of time values by scaling them all down at start.
Since:
0.3.0
Author:
Colin Robertson
  • Field Summary

    Fields
    Modifier and Type Field Description
    private static double startTime
    The time at which this library's execution begins.
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private Time()
    Make it so Time can't be instantiated.
  • Method Summary

    Modifier and Type Method Description
    static double relativeTime()
    Get the current relative time.

    Methods inherited from class java.lang.Object

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

    • startTime

      private static final double startTime
      The time at which this library's execution begins. This is used as an offset.
  • Constructor Details

    • Time

      private Time()
      Make it so Time can't be instantiated.
  • Method Details

    • relativeTime

      public static double relativeTime()
      Get the current relative time. This is, most simply, the current time, minus whatever time this method was first called at.
      Returns:
      the current relative time.