async reportBenchmark()

in src/app/services/analytics.service.ts [34:44]


    async reportBenchmark(action: string, category: string, promise: Promise<any>) {
        const t0 = performance.now();
        const result = await promise;
        const t1 = performance.now();
        try {
            this.report(action, category, /* label= */ '', Math.round(t1 - t0));
        } catch(e: unknown) {
            console.error(e);
        }
        return result;
    }