import { performance } from 'perf_hooks' ; import IStopwatch from './IStopwatch' ; export default class PerfHooksStopwatch implements IStopwatch { public stopwatchNow ( ) { return performance . now ( ) ; } }