MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / stopChronometer

Function stopChronometer

test/test_fastbuilder.js:18–25  ·  view source on GitHub ↗
(time1)

Source from the content-addressed store, hash-verified

16 return process.hrtime();
17}
18function stopChronometer(time1) {
19 let diff1 = process.hrtime(time1);
20 diff1 = (diff1[0]*1E9+diff1[1]); // in nanoseconds
21 diff1 /= 1000.0; // in microseconds
22 diff1 /= 1000.0; // in miliseconds
23 diff1 /= 1000.0; // in seconds
24 return diff1;
25}
26
27
28

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected