Source: scripts/dataObjects/timeVal.js

class TimeVal{
    /**
     * [bar description]
     * @param  {number} time in ms
     * @return {TimeVal} class that handles time convertions
     */
    constructor(value) {
        this.value = value;
    }

    inSeconds(roundToDigits = 1){
        return (this.value / 1000).toFixed(roundToDigits)
    }

    inMilliSeconds(val){
        return this.value
    }

    valueOf() {
        return this.value
    }

    ms(){
        return this.value
    }
}