Home Cooker Classes Others Rice CookerGX
Classes  >  timer
timer class

Description

Provides the function to call a method at specified time interval.

Notes

It is a class that is dynamically embedded when the Cooker runs.

This class is distributed as Rtype.Timer.dll.

The dll file is in the dlls directory in the Cooker's distribution archive.

fitter

SignatureDescription
timer()

Get a new instance of timer class.

timer(class,string,long)

Return an instance of the timer type that is initialized by the specified value.

getter

SignatureDescription
ErrorMessages

Get a list of error messages that occurred in the previous execution of the handler.

Fitted

Gets the value that indicates whether this instance was already initialized.

Handler

Gets the instance of the proxy type that stored the instance of any user defined type that have the timerhandler method.

Interval

Gets the value that indicates the interval of timer run, in millisecond.

IsEnabled

Gets the value that indicates the state of the timer run.

IsError

Gets a value that indicates whether the last execution of the handler finished with the exception.

ShowException

Gets the value that indicates whether the error messages will be shown if the execution of the handler finished with the exception.

Signature

Gets the signature for calling the handler method.

StopWithException

Gets the value that indicates whether the eventhandler will automatically be stopped if the execution finished with the exception.

TypeName

Gets the type name.

setter

SignatureDescription
Interval(int)

Sets the value that indicates the interval of timer run, in millisecond.

ShowException(bool)

Sets the value that indicates whether the error messages will be shown if the execution of the handler finished with the exception.

StopWithException(bool)

Sets the value that indicates whether the timerhandler will automatically be stopped if the execution finished with the exception.

method

SignatureDescription
Start()

Starts the execution of the timerhandler.

StartOnce()

Executes the timer handler only once.

Stop()

Stops the execution of the timer handler.

Download.

Please download the timer class ( Rtype.Timer.dll ) from the link below.

Please download the source of the timer class from the link below.

The above .dll and source files are distributed as a self-extracting archive of 7z format.

Copyright © Rice All rights reserved.