LoginSignup
36
29

More than 5 years have passed since last update.

経過時間をconsoleで手軽に計測するJavaScript

Posted at
console.time('a');  // 識別子を与えないと動かない
// 処理…
console.timeEnd('a');

console.time.png

Chrome, Safari, Firefoxに加え、IEも11から利用可能。

コンソールじゃないところに時間を出力するなら、

自前で計測する。

36
29
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
36
29