diff --git a/src/services/core/timer.ts b/src/services/core/timer.ts deleted file mode 100644 index 7d6e3b0784e..00000000000 --- a/src/services/core/timer.ts +++ /dev/null @@ -1,52 +0,0 @@ -/// - -var global: any = Function("return this").call(null); - -module TypeScript { - module Clock { - export var now: () => number; - export var resolution: number; - - declare module WScript { - export function InitializeProjection(): void; - } - - declare module TestUtilities { - export function QueryPerformanceCounter(): number; - export function QueryPerformanceFrequency(): number; - } - - if (typeof WScript !== "undefined" && typeof global['WScript'].InitializeProjection !== "undefined") { - // Running in JSHost. - global['WScript'].InitializeProjection(); - - now = function () { - return TestUtilities.QueryPerformanceCounter(); - }; - - resolution = TestUtilities.QueryPerformanceFrequency(); - } - else { - now = function () { - return Date.now(); - }; - - resolution = 1000; - } - } - - export class Timer { - public startTime: number; - public time = 0; - - public start() { - this.time = 0; - this.startTime = Clock.now(); - } - - public end() { - // Set time to MS. - this.time = (Clock.now() - this.startTime); - } - } -} \ No newline at end of file