classes/hirondelle/web4j/util/TimeSourceImpl.java
author Tomas Zeman <tzeman@volny.cz>
Wed, 04 Dec 2013 17:00:31 +0100
changeset 0 3060119b1292
permissions -rw-r--r--
Imported web4j 4.10.0

package hirondelle.web4j.util;

/**
 Default implementation of {@link TimeSource}.
 
<P> Simply returns the normal system time, without alteration. 
 If you don't define your own {@link TimeSource}, then this 
 default implementation will automatically be used by WEB4J. 
*/
public final class TimeSourceImpl  implements TimeSource {

  /** Return {@link System#currentTimeMillis()}, with no alteration. */
  public long currentTimeMillis() {
    return System.currentTimeMillis();
  }
  
}