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

これはユーティリティモジュールです。

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

## [](#関数)関数

<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.3/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.3/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.3/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.3/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.3/dw-timer-types)