Add job progress indicators

This commit is contained in:
zkldi
2021-11-17 15:28:57 +00:00
parent be49202c1a
commit fe8cef47ff
9 changed files with 63 additions and 18 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import t from "tap";
import { GetMillisecondsSince, IsValidURL } from "./misc";
t.test("#GetMillisecondssSince", (t) => {
t.test("#GetMillisecondsSince", (t) => {
const time = GetMillisecondsSince(10n);
t.ok(typeof time === "number" && time > 0, "Should return a number greater than 0.");
+1 -1
View File
@@ -18,7 +18,7 @@ export function EscapeStringRegexp(string: string) {
}
/**
* Takes a process.hrtime.bigint(), and returns the millisecondss elapsed since it.
* Takes a process.hrtime.bigint(), and returns the milliseconds elapsed since it.
* This function will not work if more than 100(ish) days have passed since the first reference.
*/
export function GetMillisecondsSince(ref: bigint) {