MCPcopy Create free account
hub / github.com/cometchat/cometchat-uikit-angular / formatTime

Function formatTime

scripts/storybook-performance.js:38–43  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

36}
37
38function formatTime(ms) {
39 if (ms < 1000) {
40 return `${ms.toFixed(0)}ms`;
41 }
42 return `${(ms / 1000).toFixed(2)}s`;
43}
44
45function measureBuildTime() {
46 logSection('Measuring Build Time');

Callers 2

measureBuildTimeFunction · 0.85
generateReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected