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.
pnpm fix
1 parent dae105e commit b39daebCopy full SHA for b39daeb
src/cli.ts
@@ -33,7 +33,7 @@ program
33
const options = program.opts();
34
35
try {
36
- const start = new Date().getTime() / 1000.0;
+ const start = Date.now() / 1000.0;
37
38
const inputPath = path.resolve(options["input"]);
39
const outputPath = path.resolve(options["output"]);
@@ -48,7 +48,7 @@ try {
48
49
fs.writeFileSync(outputPath, clientCode);
50
51
- const end = new Date().getTime() / 1000.0;
+ const end = Date.now() / 1000.0;
52
53
console.log(
54
`🏁 Successfully generated client at [${(end - start).toFixed(2)}ms]: ${outputPath}`,
0 commit comments