Package 

Interface OsInfoProvider

    • Method Summary

      Modifier and Type Method Description
      abstract Long getCurrentTimeMillis() Returns the current time in milliseconds.
      abstract Long getCurrentThreadId() Returns the identifier of current Thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCurrentTimeMillis

         abstract Long getCurrentTimeMillis()

        Returns the current time in milliseconds. Note that while the unit of time of the return value is a millisecond, the granularity of the value depends on the underlying operating system and may be larger. For example, many operating systems measure time in units of tens of milliseconds.

        See the description of the class Date for a discussion of slight discrepancies that may arise between "computer time" and coordinated universal time (UTC).

      • getCurrentThreadId

         abstract Long getCurrentThreadId()

        Returns the identifier of current Thread. The thread ID is a positive <tt>long</tt> number generated when current thread was created. The thread ID is unique and remains unchanged during its lifetime. When a thread is terminated, this thread ID may be reused.