Unit Timer
Description
Timer unit(C) 2006-2007 George "Mirage" Bakhtadze. www.casteng.com
The source code may be used under either MPL 1.1 or LGPL 2.1 license. See included license.txt file
Created: May 16, 2007
Unit contains base timer-related types and classes
Classes, Interfaces and Objects
| Name | Description |
Class TTimer | Timer service class |
Types
Overview
Description
Type of recurring event identifiers
Type for timer internal time processing. Currently one tenth of millisecond.
Timer recurring event data structure.
Delay - delay between occurences of the event in TInternalTimeUnit units
Time - time of next occurence in TInternalTimeUnit units
Delegate - a function of TTimerDelegate which will be called when the event occurs. Nil for no call
MessageClass - class of message generated when the event occurs. Nil for no message
EventID - Some identification number to supply delegate with
Type for time measured in seconds
Data structure containing the information necessary for correct measure of intervals
Methods of this type can be bound to timer events. EventID - identifies event (specified in SetEvent() call). ErrorDelta - delta time between time the event actually occured and scheduled event time.
Timer event data structure.
Time - time of the event in TInternalTimeUnit units
Delegate - a function of TTimerDelegate which will be called when the event occurs. Nil for no call
MessageClass - class of message generated when the event occurs. Nil for no message
EventID - Some identification number to supply delegate with
Timer query function type. Methods of this type can be used to query a custom implementation of timer. Should return time in TInternalTimeUnit units.
Constants
Overview
Description
Event ID corresponding to no event
Number of internal time units per millisecond
|
Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com
|