Contact Free trial Login

Timer Types (dw::util::Timer)

Type Definition Description

DurationMeasurement

type DurationMeasurement = { time: Number, result: T }

A return type that contains the execution time and result of a function call.

TimeMeasurement

type TimeMeasurement = { start: DateTime, result: T, end: DateTime }

A return type that contains a start time, end time, and result of a function call.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub