LoginSignup
14
7

More than 5 years have passed since last update.

処理時間計測

Posted at
javascript
console.time('処理時間:');
/*
計測したい処理
*/
console.timeEnd('処理時間:');
javascript
var start_ms = new Date().getTime();
/*
計測したい処理
*/
var elapsed_ms = new Date().getTime() - start_ms;

console.log('処理時間:' + elapsed_ms);
14
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
7