Class UTCTime$

java.lang.Object
csw.time.core.models.UTCTime$
All Implemented Interfaces:
Serializable

public class UTCTime$ extends Object implements Serializable
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final UTCTime$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    after(scala.concurrent.duration.FiniteDuration duration)
     
    now()
    Obtains the PTP (Precision Time Protocol) synchronized current UTC time.

    Methods inherited from class java.lang.Object

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

    • MODULE$

      public static final UTCTime$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • UTCTime$

      public UTCTime$()
  • Method Details

    • now

      public UTCTime now()
      Obtains the PTP (Precision Time Protocol) synchronized current UTC time. In case of a Linux machine, this will make a native call clock_gettime inorder to get time from the system clock with nanosecond precision. In case of all the other operating systems, nanosecond precision is not supported, hence no native call is made.

      Returns:
      current time in UTC scale
    • after

      public UTCTime after(scala.concurrent.duration.FiniteDuration duration)