UNPKG

730 BJavaScriptView Raw
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.timeEnd = exports.time = void 0;
11// Internal benchmark reporting flag.
12// Use with CLI --no-progress flag for best results.
13// This should be false for commited code.
14const _benchmark = false;
15/* eslint-disable no-console */
16function time(label) {
17 if (_benchmark) {
18 console.time(label);
19 }
20}
21exports.time = time;
22function timeEnd(label) {
23 if (_benchmark) {
24 console.timeEnd(label);
25 }
26}
27exports.timeEnd = timeEnd;