Restored Execution time for now

This commit is contained in:
ebolam
2022-08-23 21:09:30 -04:00
parent 1bde1bc9a5
commit fb8911eb05
2 changed files with 5 additions and 8 deletions

View File

@@ -438,10 +438,9 @@ function do_ai_busy(data) {
favicon.start_swap()
} else {
runtime = Date.now() - ai_busy_start;
//if (document.getElementById("Execution Time")) {
// document.getElementById("Execution Time").textContent = Math.round(runtime/1000).toString().toHHMMSS();
//}
document.getElementById("btnsubmit").title = "Execution Time: "+Math.round(runtime/1000).toString().toHHMMSS();
if (document.getElementById("Execution Time")) {
document.getElementById("Execution Time").textContent = Math.round(runtime/1000).toString().toHHMMSS();
}
favicon.stop_swap()
document.getElementById('btnsubmit').textContent = "Submit";
for (item of document.getElementsByClassName('statusbar_outer')) {
@@ -537,10 +536,6 @@ function var_changed(data) {
item.setAttribute(data.classname.replace(" ", "_")+"_"+data.name.replace(" ", "_"), fix_text(data.value));
}
//add execution time and remaining time
if ((data.classname == 'model') && (data.name == 'tqdm_rem_time')) {
document.getElementById('status_bar').title = "Remainging Time: " + data.value;
}
}

View File

@@ -16,6 +16,8 @@
}
}
</script>
<div>Execution Time: <span id="Execution Time"></span></div>
<div>Remaining Time: <span class="var_sync_model_tqdm_rem_time"></span></div>
<div class="used_token_length"></div>
<hr/>
<div class="tabrow nomenu_icon">