完成世界书、骰子、apiconfig页面处理

This commit is contained in:
2026-04-30 01:35:10 +08:00
parent a3e3711b2b
commit ba9b925c32
4602 changed files with 785225 additions and 23 deletions
+7
View File
@@ -0,0 +1,7 @@
export function timer<T>(func: () => T): { time: number; value: T } {
const start = new Date().getTime();
const val = func();
const end = new Date().getTime();
const total = end - start;
return { time: total, value: val };
}