com.veraxsystems.icmp.util
Class TimeUtil

java.lang.Object
  extended by com.veraxsystems.icmp.util.TimeUtil

public class TimeUtil
extends java.lang.Object

Utilities to calculate time with 1 millisecond precision.


Constructor Summary
TimeUtil()
           
 
Method Summary
static long currentTimeMillis()
          Get time in milliseconds.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeUtil

public TimeUtil()
Method Detail

currentTimeMillis

public static long currentTimeMillis()
Get time in milliseconds. Internally. more precise method is used (it is system dependent but since Windows XP SP2 it should behave properly on microseconds level). Value does not represent any real time but can be used to calculate time periods. Returned value is rounded to nearest milliseconds value.

Returns:
current time value