decord/source/modules/debug/Logger.tsx

29 lines
966 B
TypeScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 3
2026-07-29 08:29:29 +00:00
// Function ID: 4
2026-07-20 16:05:17 +00:00
// Name: timestamp
2026-07-29 08:29:29 +00:00
// Dependencies: [4, 7, 2]
2026-07-20 16:05:17 +00:00
// Module 3 (timestamp)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import reportAll from "report" /* 7 */;
import log from "log" /* 4 */;
2026-07-23 10:11:24 +00:00
let timestamp = Date.now();
log.setLogFn((name) => {
2026-07-20 16:05:17 +00:00
const substr = [...arguments].slice();
2026-08-24 06:08:38 +00:00
timestamp = Date.now();
2026-07-20 16:05:17 +00:00
const result = (timestamp - timestamp) / 1000;
const result1 = (timestamp - timestamp) / 1000;
const toFixedResult = result.toFixed(3);
const toFixedResult1 = result1.toFixed(3);
2026-08-24 06:08:38 +00:00
const tmp5 = reportAll;
2026-07-20 16:05:17 +00:00
const items = [{ name, timing: "\u03A3:" + toFixedResult + "s, \u0394:" + toFixedResult1 + "s" }, arg2, ...substr];
tmp5.report.apply(items);
const obj = { name, timing: "\u03A3:" + toFixedResult + "s, \u0394:" + toFixedResult1 + "s" };
const items1 = [name, arg1, arg2, ...substr];
2026-08-24 06:08:38 +00:00
log.defaultLogFn.apply(items1);
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
let result = set.fileFinishedImporting("modules/debug/Logger.tsx");
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
export default log.Logger;