timer class : Interval getter

Description

Returns the timer execution interval.

Syntax

instance.Interval

Arguments

None.

Return value

ClassDescription
intTime interval.

Sample code

Suppose you have the following class definition.

1:

class handle

2:

open method void THandler(dictionary dic)

3:

... // timer handler code.

4:

endmethod

5:

endclass

Usage of the Interval getter is as follows.

1:

handle h = new handle();

2:

timer tim = new timer(h, "THandler(dictionary)", 1000);

3:

int interval = tim.Interval; // 1000ms

Notes

The unit is milliseconds.

Links for reference

None.

Copyright © Cooker All rights reserved.