Class TimeReference.Milliseconds

    • Constructor Detail

      • Milliseconds

        public Milliseconds()
    • Method Detail

      • ticksToMillisCeiling

        public long ticksToMillisCeiling​(long ticks)
        Description copied from interface: TimeReference
        Convert a duration in ticks to milliseconds, rounding up to the next full millisecond.

        This can be overridden in case another timescale is used. Conversion is needed for correctly scheduling a timer tasks.

        Specified by:
        ticksToMillisCeiling in interface TimeReference
      • toTicks

        public long toTicks​(Duration v)
        Description copied from interface: TimeReference
        Convert a duration to ticks. Used to convert configuration durations.
        Specified by:
        toTicks in interface TimeReference
      • ticksToInstant

        public Instant ticksToInstant​(long ticks)
        Description copied from interface: TimeReference
        Convert a time value in ticks to an instant object. Needed for display purposes.
        Specified by:
        ticksToInstant in interface TimeReference