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.
1 parent 35477bf commit a01cf50Copy full SHA for a01cf50
src/cli.ts
@@ -28,6 +28,8 @@ program
28
const options = program.opts();
29
30
try {
31
+ const start = new Date().getTime() / 1000.0;
32
+
33
const inputPath = path.resolve(options["input"]);
34
const outputPath = path.resolve(options["output"]);
35
@@ -39,7 +41,12 @@ try {
39
41
const clientCode = generateClient(inputPath);
40
42
43
fs.writeFileSync(outputPath, clientCode);
- console.log(`🏁 Successfully generated client at: ${outputPath}`);
44
45
+ const end = new Date().getTime() / 1000.0;
46
47
+ console.log(
48
+ `🏁 Successfully generated client at [${(end - start).toFixed(2)}ms]: ${outputPath}`,
49
+ );
50
} catch (error) {
51
console.error(
52
"😵 Error:",
0 commit comments