📜  javascript 时间脚本 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:42.638000             🧑  作者: Mango

代码示例1
var start = new Date();

//do some think that takes a while here

var runTime = new Date() - start;
console.log("Script took:"+runTime+" Milliseconds to run");