﻿function Timer(e, b) { var a, d, c = b; this.pause = function () { window.clearTimeout(a); c -= new Date() - d }; this.resume = function () { d = new Date(); a = window.setTimeout(e, c) }; this.stop = function () { window.clearTimeout(a) }; this.resume() };
