CODE
var time = Math.round((Date.now() - startTime) / 1000.0),
hours = Math.floor(time / 3600),
minutes = Math.floor(time / 60) % 60,
seconds = time % 60,
tps = turns / time;
Recently in HentaiVerse Unofficial Discord Chat, a player mentioned he once do a RE in speed at 6t/s. Then I checked how Monsterbation calculates the tps.
To avoid accuracy loss during the tps calculation, IMHO the code snippet below could help:
CODE
var tps = (turns / ((Date.now() - startTime) / 1000)).toFixed(2)
Although Monsterbation is not a rocket launching control program, 6t/s is a bit ridiculous.