UNPKG

typescript-dotnet-core

Version:

A the core classes and utilities of a JavaScript-Friendly .NET Based TypeScript Library.

25 lines (24 loc) 763 B
/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md */ import TimeSpan from "./TimeSpan"; import ITimer from "./ITimer"; export default class Stopwatch implements ITimer { static getTimestampMilliseconds(): number; private _elapsed; private _startTimeStamp; private _isRunning; get isRunning(): boolean; constructor(); static startNew(): Stopwatch; static measure(closure: () => void): TimeSpan; start(): void; stop(): void; reset(): void; lap(): TimeSpan; get currentLapMilliseconds(): number; get currentLap(): TimeSpan; get elapsedMilliseconds(): number; get elapsed(): TimeSpan; }