@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
15 lines (14 loc) • 481 B
TypeScript
export type StartTime = [number, number];
/**
* Returns the current high-resolution real time in a [seconds, nanoseconds] tuple Array.
*
* @returns The current high-resolution real time.
*/
export declare function startHRTime(): StartTime;
/**
* Given a start time tuple, it returns the end time string with the time in miliseconds.
*
* @param startTime - Time tuple.
* @returns Time in miliseconds.
*/
export declare function endHRTimeInMs(startTime: StartTime): string;