Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "time/toc/docs/types/index.d"

Index

Functions

Functions

Export assignment toc

  • toc(time: Array<number>): Array<number>
  • Returns a high-resolution time difference, where time is a two-element array with format [seconds, nanoseconds].

    Notes

    • Similar to time, the returned array has format [seconds, nanoseconds].
    throws

    must provide a nonnegative integer array

    throws

    input array must have length 2

    Parameters

    • time: Array<number>

      high-resolution time

    Returns Array < number >

    high resolution time difference

    Example

    var tic = require( `@stdlib/time/tic` );
    
    var start = tic();
    var delta = toc( start );
    // returns [<number>,<number>]