Skip to content

Commit a931a3a

Browse files
author
John Doe
committed
refactor: wip
1 parent a3e839d commit a931a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/lib/clock-epoch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export function epochClock(init: EpochClockOptions = {}) {
4141
msToUs(timeOriginMs + perfMs);
4242

4343
const fromEntryStartTimeMs = fromPerfMs;
44-
const fromEntry = (entry: PerformanceEntry, asEnd = false) => {
44+
const fromEntry = (entry: PerformanceEntry, useEndTime = false) => {
4545
return defaultClock.fromPerfMs(
4646
entry.startTime +
47-
(entry.entryType === 'measure' && asEnd ? entry.duration : 0),
47+
(entry.entryType === 'measure' && useEndTime ? entry.duration : 0),
4848
);
4949
};
5050
const fromDateNowMs = fromEpochMs;

0 commit comments

Comments
 (0)