@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
18 lines • 746 B
TypeScript
import { Measurement, MeasurementOptions } from './measurement';
import { Stopwatch } from './stopwatch';
/**
* A simple {@link Stopwatch} that uses a caller-supplied time function and logs
* via `console`. Usable without Inversify DI: this class does not assign nor
* use the inherited `logger` field.
*/
export declare class SimpleStopwatch extends Stopwatch {
constructor(owner: string, now: () => number);
start(name: string, options?: MeasurementOptions): Measurement;
protected log(measurement: Measurement, activity: string, options: {
now: () => number;
owner?: string;
context?: string;
arguments?: any[];
} & MeasurementOptions): void;
}
//# sourceMappingURL=simple-stopwatch.d.ts.map