Returns a high-resolution time difference, where time is a two-element array with format [seconds, nanoseconds].
time
[seconds, nanoseconds]
must provide a nonnegative integer array
input array must have length 2
2
high-resolution time
high resolution time difference
var tic = require( `@stdlib/time/tic` ); var start = tic(); var delta = toc( start ); // returns [<number>,<number>]
Returns a high-resolution time difference, where
time
is a two-element array with format[seconds, nanoseconds]
.Notes
time
, the returned array has format[seconds, nanoseconds]
.must provide a nonnegative integer array
input array must have length
2