|
0
|
1 |
package hirondelle.web4j.util;
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
Default implementation of {@link TimeSource}.
|
|
|
5 |
|
|
|
6 |
<P> Simply returns the normal system time, without alteration.
|
|
|
7 |
If you don't define your own {@link TimeSource}, then this
|
|
|
8 |
default implementation will automatically be used by WEB4J.
|
|
|
9 |
*/
|
|
|
10 |
public final class TimeSourceImpl implements TimeSource {
|
|
|
11 |
|
|
|
12 |
/** Return {@link System#currentTimeMillis()}, with no alteration. */
|
|
|
13 |
public long currentTimeMillis() {
|
|
|
14 |
return System.currentTimeMillis();
|
|
|
15 |
}
|
|
|
16 |
|
|
|
17 |
}
|