UNPKG

504 BTypeScriptView Raw
1/** @module count */
2/**
3 * Interface for a callback to end measurement of execution elapsed time.
4 *
5 * @see [[CounterTiming]]
6 */
7export interface ICounterTimingCallback {
8 /**
9 * Ends measurement of execution elapsed time and updates specified counter.
10 *
11 * @param name a counter name
12 * @param elapsed execution elapsed time in milliseconds to update the counter.
13 *
14 * @see [[CounterTiming.endTiming]]
15 */
16 endTiming(name: string, elapsed: number): void;
17}