File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ function logFetchMetric(
93
93
94
94
writeLine (
95
95
white (
96
- `${ method } ${ url } ${ status } in ${ end - start } ms ${ formatCacheStatus ( cacheStatus ) } `
96
+ `${ method } ${ url } ${ status } in ${ Math . round ( end - start ) } ms ${ formatCacheStatus ( cacheStatus ) } `
97
97
) ,
98
98
1
99
99
)
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ function trackFetchMetric(
220
220
221
221
workStore . fetchMetrics . push ( {
222
222
...ctx ,
223
- end : Date . now ( ) ,
223
+ end : performance . timeOrigin + performance . now ( ) ,
224
224
idx : workStore . nextFetchId || 0 ,
225
225
} )
226
226
}
@@ -250,7 +250,7 @@ export function createPatchedFetcher(
250
250
url = undefined
251
251
}
252
252
const fetchUrl = url ?. href ?? ''
253
- const fetchStart = Date . now ( )
253
+ const fetchStart = performance . timeOrigin + performance . now ( )
254
254
const method = init ?. method ?. toUpperCase ( ) || 'GET'
255
255
256
256
// Do create a new span trace for internal fetches in the
You can’t perform that action at this time.
0 commit comments