MCPcopy Create free account
hub / github.com/BaseXdb/basex / time

Method time

basex-core/src/main/java/org/basex/query/func/unit/Unit.java:300–302  ·  view source on GitHub ↗

Returns a token representation of the measured time. @param p performance @return time

(final Performance p)

Source from the content-addressed store, hash-verified

298 * @return time
299 */
300 static byte[] time(final Performance p) {
301 return DTDur.get(p.nanoRuntime() / 1000000).string(null);
302 }
303}

Callers 2

testMethod · 0.95
testMethod · 0.95

Calls 3

getMethod · 0.95
nanoRuntimeMethod · 0.80
stringMethod · 0.45

Tested by

no test coverage detected