All files / src/models frameTime.js

100% Statements 7/7
100% Branches 2/2
100% Functions 1/1
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13  1x 1x     27x 27x 27x 27x     1x  
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FrameTime = void 0;
class FrameTime {
    constructor(start, end) {
        this.start = start;
        this.end = end;
        this.delta = end - start;
        this.fps = this.delta > 0 ? 1 / (this.delta * 0.001) : 0;
    }
}
exports.FrameTime = FrameTime;