From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/console/time/index.html | 66 ++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 files/ja/web/api/console/time/index.html (limited to 'files/ja/web/api/console/time') diff --git a/files/ja/web/api/console/time/index.html b/files/ja/web/api/console/time/index.html new file mode 100644 index 0000000000..fc1118028c --- /dev/null +++ b/files/ja/web/api/console/time/index.html @@ -0,0 +1,66 @@ +--- +title: Console.time() +slug: Web/API/Console/time +tags: + - API + - DOM + - Debugging + - Method + - Web Development + - console + - web console + - メソッド +translation_of: Web/API/Console/time +--- +
{{APIRef("Console API")}}
+ +

処理時間がどれくらいかを計測するために使用することができるタイマーを開始します。各タイマーに一意の名前を付ければ、ページ内に10,000個までのタイマーを実行させることができます。同じ名前を引数として {{domxref("console.timeEnd()")}} を呼び出すと、タイマー開始からの経過時間がミリ秒単位で出力されます。

+ +

詳細や使用例については、 {{domxref("console")}} のページの 『タイマー』 を参照して下さい。

+ +

{{AvailableInWorkers}}

+ +

構文

+ +
console.time(label);
+
+ +

引数

+ +
+
label
+
新しいタイマーにつける名前。各タイマーの識別に用います。同じ名前を使用して {{domxref("console.timeEnd()")}} を呼び出すと、タイマーを終了して時間をコンソールに出力します。
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("Console API", "#consoletimelabel", "console.time()")}}{{Spec2("Console API")}}初回定義
+ +

ブラウザーの対応

+ + + +

{{Compat("api.Console.time")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf