Skip to content

Commit 34a724c

Browse files
committed
2 parents 08c6031 + 343d86c commit 34a724c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/commands/commands-tests.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Commands } from "./index.js";
2+
3+
let timerA = Date.now();
4+
Commands.run("say Hello World");
5+
console.warn(`Commands.run time: ${Date.now() - timerA} ms`);
6+
7+
let timerB = Date.now();
8+
Commands.runAsync("say Hello World in async");
9+
console.warn(`Commands.runAsync time: ${Date.now() - timerB} ms`);
10+
11+
console.log("End of test");

0 commit comments

Comments
 (0)