JSFiddle - React, Tailwind, and code Playground

HTML

<div id="timer">0.000</div>

JavaScript

var num = 0.00;

window.setInterval(function () {
    timer();
}, 100);

function timer() {
    num = ((num * 100) + 1) / 100;
    document.getElementById("timer").innerHTML = num.toFixed(2);
}