source: trip-planner-front/node_modules/@ngtools/webpack/src/benchmark.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 730 bytes
Line 
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;
Note: See TracBrowser for help on using the repository browser.