aboutsummaryrefslogtreecommitdiff
path: root/src/jssh.js
diff options
context:
space:
mode:
authoramy <[email protected]>2023-02-10 19:36:26 -0600
committeramy <[email protected]>2023-02-10 19:36:26 -0600
commit48ad12f5d0a6bec5345e1d40b7a0e6f0a93212fc (patch)
treef84c863a2d69f727e2d90e31a8520b889730c442 /src/jssh.js
parentf5617805ada602004ea2edeb518d0a6a300ed5e4 (diff)
fixed border gen
Diffstat (limited to 'src/jssh.js')
-rw-r--r--src/jssh.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jssh.js b/src/jssh.js
index b93a4de..03b34ea 100644
--- a/src/jssh.js
+++ b/src/jssh.js
@@ -201,7 +201,13 @@ class jssh {
let id = document.getElementsByClassName("window").length;
let tt = line.split(" ");
tt.splice(0, 1);
- eval(tt.join(" ").replace(/#_ID/g, id));
+ (async () => {
+ let time = new Date().getTime();
+ await eval(tt.join(" ").replace(/#_ID/g, id));
+ this.stdout(
+ "took " + Math.abs(new Date().getTime() - time) / 1000 + "s"
+ );
+ })();
break;
}
}