@atlaskit/editor-plugin-base
Version:
Base plugin for @atlaskit/editor-core
10 lines • 327 B
JavaScript
/**
* 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 var getTimeSince = function getTimeSince(startTime) {
return performance.now() - startTime;
};