MercuryTimers Object (Collection)

Description

A collection of MercuryTimer objects that measure time in milliseconds.

IMPORTANT

You can use the MercuryTimers collection object to measure elapsed time. The MercuryTimers collection object has a single default property, Timer, which returns a MercuryTimer object.

Properties

Method TimerAccesses the timer with the specified name from the MercuryTimers collection object, or creates a new timer with this name if the timer does not yet exist.

Back to top

Timer Property

Accesses the timer with the specified name from the MercuryTimers collection object, or creates a new timer with this name if the timer does not yet exist.

Description

Set MyTimer = MercuryTimers.Timer(TimerName)

Argument

Type

Description

TimerName

String

The name of the specific timer.

Note:  

You can omit the word Timer in the syntax, because Timer is the default property for the MercuryTimers collection object.

Instead of returning the internal timer object to the MyTimer variable, you can perform MercuryTimer methods directly on the returned object within the same statement, as shown in the following example.

Return Value

A Variant value. A MercuryTimer object.

IMPORTANT

The Timer property is the default property for the MercuryTimers collection object.

Back to top

See also: