mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 05:48:00 +03:00
Add job progress indicators
This commit is contained in:
@@ -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.");
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user