-
public interface OsInfoProvider
-
-
Method Summary
Modifier and Type Method Description abstract LonggetCurrentTimeMillis()Returns the current time in milliseconds. abstract LonggetCurrentThreadId()Returns the identifier of current Thread. -
-
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
Datefor 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.
-
-
-
-