UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

8 lines 295 B
/** * Calculate the difference between performance.now() and the given startTime. * This allows for the timing to be overridable during tests. * * @param startTime DOMHighResTimeStamp * @returns DOMHighResTimeStamp */ export const getTimeSince = startTime => performance.now() - startTime;