Display sp compute times in html

This commit is contained in:
hppeng 2022-07-16 22:48:28 -07:00
parent 6ba2383e2f
commit 3294494c53

View file

@ -207,6 +207,8 @@ function calculate_skillpoints(equipment, weapon) {
// final_skillpoints: final totals (5 individ) // final_skillpoints: final totals (5 individ)
// best_total: total skillpoints assigned (number) // best_total: total skillpoints assigned (number)
const end = Date.now(); const end = Date.now();
console.log(`skillpoint calculation took ${(end-start)/ 1000} seconds.`); const output_msg = `skillpoint calculation took ${(end-start)/ 1000} seconds.`;
console.log(output_msg);
document.getElementById('stack-box').textContent = output_msg;
return [equip_order, best_skillpoints, final_skillpoints, best_total, best_activeSetCounts]; return [equip_order, best_skillpoints, final_skillpoints, best_total, best_activeSetCounts];
} }