Home News DOC Class DL Others Rice
Class  >  timer
timer class

Description

Provides a function that calls a method at a specified time interval.

Notes

It is a class that is statically included in the Cooker.

An instance returned by variable declaration has not been initialized.

An instance that is used up should be released. Please do not forget to call Release() method.

fitter

SignatureDescription
timer()

Returns a new instance of timer class.

timer(class,string,int)

Returns a new instance of timer class.

getter

SignatureDescription
ErrorMessages

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

Fitted

Returns the value that indicates whether this instance was initialized.

Handler

Returns an instance of an user-defined class that have the handler method.

Interval

Returns the timer execution interval.

IsEnabled

Returns a value that indicates whether the timer handing is running.

IsError

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

ShowException

Returns a value that indicates whether to display the error messages.

Signature

Returns the signature of the handler.

StopWithException

Returns a value that indicates whether to stop with the exception.

TypeName

Returns the type name.

setter

SignatureDescription
Handler(anyclass)

Sets an instance of an user-defined class that have the handler method.

Interval(int)

Sets the timer execution interval.

ShowException(bool)

Sets a value that indicates whether to display the error messages.

Signature(string)

Sets the signature of the handler.

StopWithException(bool)

Sets a value that indicates whether to stop with the exception.

method

SignatureDescription
OneShot()

Starts the timer handling.

Release()

Releases unmanaged resources.

Start()

Starts the timer handling.

Stop()

Stops the timer handling.

Copyright © Rice All rights reserved.