UNPKG

@stdlib/time

Version:
27 lines (19 loc) 567 B
{{alias}}( time ) Returns a high-resolution time difference, where `time` is a two-element array with format `[seconds, nanoseconds]`. Similar to `time`, the returned array has format `[seconds, nanoseconds]`. Parameters ---------- time: Array<integer> High-resolution time. Returns ------- out: Array<integer> High resolution time difference. Examples -------- > var start = {{alias:@stdlib/time/tic}}(); > var delta = {{alias}}( start ) [ <number>, <number> ] See Also --------