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
commit8de1455ee981de70de25257b29844235985bc206 (patch)
tree6a923ae5645de7640c8103887cafdf3c4d6aa686 /src/jssh.js
parentef4fb392bea8648bf04f3e9349758a1c9e573d12 (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 cb7c551..970b38c 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;
}
}