/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/ngtools/webpack/src/benchmark.ts
24 строки
593 B
Charles Lyding
refactor(@ngtools/webpack): add return types to functions
14 янв 2025, 18:37
14 янв 2025, 18:37
9cccb88
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // Internal benchmark reporting flag. // Use with CLI --no-progress flag for best results. // This should be false for commited code. const _benchmark = false; /* eslint-disable no-console */ export function time(label: string): void { if (_benchmark) { console.time(label); } } export function timeEnd(label: string): void { if (_benchmark) { console.timeEnd(label); } }