timer.d.ts 268 B

1234567891011
  1. export interface Timer {
  2. end(): void;
  3. }
  4. export declare class DevTimer implements Timer {
  5. private readonly label;
  6. private start;
  7. constructor(label: string);
  8. endAndGet(): string;
  9. end(): void;
  10. }
  11. export declare function time(label: string): Timer;