From d4fa7e4867ea425c4c2a8d247f702cafe0eec6bf Mon Sep 17 00:00:00 2001 From: Hassan Sufi Date: Wed, 6 Dec 2023 01:44:55 -0800 Subject: [PATCH] Change duration to durationMs --- pxtrunner/runner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pxtrunner/runner.ts b/pxtrunner/runner.ts index d706e6f37f54..8a624fae6187 100644 --- a/pxtrunner/runner.ts +++ b/pxtrunner/runner.ts @@ -471,7 +471,7 @@ namespace pxt.runner { try { const start = Date.now(); const result = await pxt.Cloud.downloadBuiltSimJsInfoAsync(simOptions.id); - pxt.tickEvent("runner.fetchSimJsInfo", { duration: Date.now() - start}); + pxt.tickEvent("runner.fetchSimJsInfo", { durationMs: Date.now() - start}); return result; } catch (e) { // This exception will happen in the majority of cases, so we don't want to log it unless for debugging. @@ -544,7 +544,7 @@ namespace pxt.runner { const res = pxtc.buildSimJsInfo(compileResult); res.parts = compileResult.usedParts; - pxt.tickEvent("runner.buildSimJsInfo", { duration: Date.now() - start}); + pxt.tickEvent("runner.buildSimJsInfo", { durationMs: Date.now() - start}); return res; }