JSFiddle - React, Tailwind, and code Playground
by alnitak
HTML
<table>
<tr><td id="t1"></td>
<td> </td>
<td id="t2"></td>
</tr>
</table>
CSS
td {
vertical-align: top;
font-family: Courier, 'Courier New';
}
JavaScript
var interval = 60000;
function showTime() {
var now = new Date();
var now_s = (now / 1000).toFixed(3);
$('#t1').append(now_s + '<br/>');
};
function showTime2() {
var now = new Date();
var now_s = (now / 1000).toFixed(3);
$('#t2').append(now_s + '<br/>');
var delay = interval - (now % interval);
setTimeout(showTime2, delay);
};
setInterval(showTime, 60000);
showTime();
showTime2();