---
schema_version: "1"
id: 222afccedff03e9f9f9e64bc5728cfa7eee47c6f9577ea3e0ece4d41d1bd77b6
title: Timer (dw::util::Timer)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-timer.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-timer
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 485a73a7df4e5e7e46c7ba6e2bab106903af9d4e37a8285fb2b59af9104ea851
description: MuleSoft Documentation Site
release: "2.7"
latest: false
---
# Timer (dw::util::Timer)

このユーティリティモジュールには、時間を測定するための関数が含まれています。

このモジュールを使用するには、DataWeave コードにインポートする必要があります。その方法として、たとえば、行 ​`import * from dw::util::Timer`​ を DataWeave スクリプトの ヘッダーに追加します。

## [](#関数)関数

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.7/dw-timer-functions-currentmilliseconds" class="xref page">currentMilliseconds</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">現在の時刻をミリ秒単位で返します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.7/dw-timer-functions-duration" class="xref page">duration</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">入力関数を実行し、その関数の実行時間 (ミリ秒) と結果を含むオブジェクトを返します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.7/dw-timer-functions-time" class="xref page">time</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">入力関数を実行し、その関数の実行の開始時刻と終了時刻が含まれる ​<code>TimeMeasurement</code>​ オブジェクトと関数の結果を返します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.mulesoft.com/jp/dataweave/2.7/dw-timer-functions-tomilliseconds" class="xref page">toMilliseconds</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定された日時のミリ秒での表現を返します。</p></td>
</tr>
</tbody>
</table>

## [](#型)型

- [Timer の型](https://docs.mulesoft.com/jp/dataweave/2.7/dw-timer-types)