function toc( time ) {
	var now = tic();
	var sec;
	var ns;
	if ( !isNonNegativeIntegerArray( time ) ) {
		throw new TypeError( format( 'invalid argument. Must provide an array of nonnegative integers. Value: `%s`.', time ) );
	}
	if ( time.length !== 2 ) {
		throw new RangeError( format( 'invalid argument. Input array must contain two elements. Value: `%s`.', time ) );
	}
	sec = now[ 0 ] - time[ 0 ];
	ns = now[ 1 ] - time[ 1 ];
	if ( sec > 0 && ns < 0 ) {
		sec -= 1;
		ns += 1e9;
	}
	else if ( sec < 0 && ns > 0 ) {
		sec += 1;
		ns -= 1e9;
	}
	return [ sec, ns ];
}
Returns a high-resolution time difference.

## Notes

-   Output format: `[seconds, nanoseconds]`.

@param {NonNegativeIntegerArray} time - high-resolution time
@throws {TypeError} must provide a nonnegative integer array
@throws {RangeError} input array must have length `2`
@returns {NumberArray} high resolution time difference

@example
var tic = require( '@stdlib/time/tic' );

var start = tic();
var delta = toc( start );
// returns [<number>,<number>]