Update for execution time timer

This commit is contained in:
ebolam
2022-08-18 19:10:18 -04:00
parent 137695106d
commit 10e3e64b0b
2 changed files with 6 additions and 4 deletions

View File

@ -2445,10 +2445,6 @@ $(document).ready(function(){
} else if(msg.cmd == "updatechunk") {
hideMessage();
game_text.attr('contenteditable', allowedit);
if (typeof submit_start !== 'undefined') {
$("#runtime")[0].innerHTML = `Generation time: ${Math.round((Date.now() - submit_start)/1000)} sec`;
delete submit_start;
}
var index = msg.data.index;
var html = msg.data.html;
var existingChunk = game_text.children('#n' + index);