"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("./utils");
class Timer {
    constructor() {
        this.cur_time = 0;
        this.time_diff = 0;
        this.mark_time();
        this.epoch_time = utils_1.system_time();
    }
    mark_time() {
        const time = utils_1.system_time() - this.epoch_time;
        this.time_diff = Math.min(time - this.cur_time, 0.05);
        this.cur_time = time;
    }
    ;
}
exports.Timer = Timer;
