Last change
on this file since 8d391a1 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 | */
|
---|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
10 | exports.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.
|
---|
14 | const _benchmark = false;
|
---|
15 | /* eslint-disable no-console */
|
---|
16 | function time(label) {
|
---|
17 | if (_benchmark) {
|
---|
18 | console.time(label);
|
---|
19 | }
|
---|
20 | }
|
---|
21 | exports.time = time;
|
---|
22 | function timeEnd(label) {
|
---|
23 | if (_benchmark) {
|
---|
24 | console.timeEnd(label);
|
---|
25 | }
|
---|
26 | }
|
---|
27 | exports.timeEnd = timeEnd;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.