Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
debug: Remove print_elapsed_time in favor of console.time.
Anders Kaseorg5173511e7742
diff --git a/web/src/debug.ts b/web/src/debug.tsindex 1b933b54ceb..2229afcbc98 100644--- a/web/src/debug.ts+++ b/web/src/debug.ts@@ -4,26 +4,12 @@// the browser console, run:// var debug = require("./src/debug");-/*- debug.print_elapsed_time("foo", foo)-- evaluates to foo() and prints the elapsed time- to the console along with the name "foo". */-type Collision = {id: string;count: number;node: string;};-export function print_elapsed_time<T>(name: string, fun: () => T): T {- const t0 = Date.now();- const out = fun();- const t1 = Date.now();- console.log(`${name} : ${t1 - t0} ms`);- return out;-}-export function check_duplicate_ids(): {collisions: Collision[]; total_collisions: number} {const ids = new Set<string>();const collisions: Collision[] = [];