* @param {!Window} win
(win)
| 18 | * @param {!Window} win |
| 19 | */ |
| 20 | constructor(win) { |
| 21 | /** @const {!Window} */ |
| 22 | this.win = win; |
| 23 | |
| 24 | /** @private @const {!Promise} */ |
| 25 | this.resolved_ = this.win.Promise.resolve(); |
| 26 | |
| 27 | this.taskCount_ = 0; |
| 28 | |
| 29 | this.canceled_ = {}; |
| 30 | |
| 31 | /** @const {number} */ |
| 32 | this.startTime_ = Date.now(); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Returns time since start in milliseconds. |