We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e839d commit a931a3aCopy full SHA for a931a3a
packages/utils/src/lib/clock-epoch.ts
@@ -41,10 +41,10 @@ export function epochClock(init: EpochClockOptions = {}) {
41
msToUs(timeOriginMs + perfMs);
42
43
const fromEntryStartTimeMs = fromPerfMs;
44
- const fromEntry = (entry: PerformanceEntry, asEnd = false) => {
+ const fromEntry = (entry: PerformanceEntry, useEndTime = false) => {
45
return defaultClock.fromPerfMs(
46
entry.startTime +
47
- (entry.entryType === 'measure' && asEnd ? entry.duration : 0),
+ (entry.entryType === 'measure' && useEndTime ? entry.duration : 0),
48
);
49
};
50
const fromDateNowMs = fromEpochMs;
0 commit comments