aboutsummaryrefslogtreecommitdiff
path: root/src/jssh.js
diff options
context:
space:
mode:
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;
}
}