UNPKG

@stringsync/vexml

Version:

MusicXML to Vexflow

18 lines (17 loc) 415 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Stopwatch = void 0; class Stopwatch { start = performance.now(); constructor() { } static start() { return new Stopwatch(); } lap() { const now = performance.now(); const result = now - this.start; this.start = now; return result; } } exports.Stopwatch = Stopwatch;