The MercuryTimers
object enables measurement of time between any two operations. Unlike the native VBScript Timer
function, the MercuryTimers
object supports the utilization of multiple timer_name
time measurement transactions in parallel. In essence, the Timers
object is a kind of Dictionary that can store different Timer
objects, each with a unique key. This can be useful to measure the time elapsed at different levels of the run session, and hence, identify possible bottlenecks caused by specific blocks of code.
The MercuryTimers
object provides the following methods to use with a Timer
object:
It also provides the ElapsedTime
property, which can be used to report, as well as synchronization.