MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / currentTimeMillis

Method currentTimeMillis

src/utils/DateTime.java:356–358  ·  view source on GitHub ↗

Pass through to System#currentTimeMillis() for use in classes to make unit testing easier. Mocking System.class is a bad idea in general so placing this here and mocking DateTime.class is MUCH cleaner. @return The current epoch time in milliseconds @since 2.1

()

Source from the content-addressed store, hash-verified

354 * @since 2.1
355 */
356 public static long currentTimeMillis() {
357 return System.currentTimeMillis();
358 }
359
360 /**
361 * Pass through to {@link System#nanoTime()} for use in classes to

Calls

no outgoing calls