MCPcopy Create free account
hub / github.com/apache/solr / time

Method time

solr/solrj/src/java/org/apache/solr/common/util/Utils.java:763–765  ·  view source on GitHub ↗
(TimeSource timeSource, TimeUnit unit)

Source from the content-addressed store, hash-verified

761 }
762
763 public static long time(TimeSource timeSource, TimeUnit unit) {
764 return unit.convert(timeSource.getTimeNs(), TimeUnit.NANOSECONDS);
765 }
766
767 public static long timeElapsed(TimeSource timeSource, long start, TimeUnit unit) {
768 return unit.convert(timeSource.getTimeNs() - NANOSECONDS.convert(start, unit), NANOSECONDS);

Callers 3

runMethod · 0.45
sample_europarlFunction · 0.45
downloadFunction · 0.45

Calls 2

convertMethod · 0.65
getTimeNsMethod · 0.45

Tested by

no test coverage detected