LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Event Scheduler #7

Closed LaKraven closed 9 years ago

LaKraven commented 9 years ago

Add overloaded methods to TLKEvent for "Queue" and "Stack" with parameters:

AScheduleFor: Double; // The time at which we wish the Event to be dispatched for processing AScheduleMode: TLKScheduleMode = smOffset; // See below

smOffsetTime = "Dispatch time = now + AScheduleFor" smAbsoluteTime = "Dispatch time = Time stated by AScheduleFor"

Value of smOffsetTime will make the Event Engine calculate the Absolute Time based on the Current Time + AScheduleFor

As with everything in the LKSL's High Precision Threading and Event Engines, all Time values are provided as floating-point (double-precision) values in SECONDS.

LaKraven commented 9 years ago

Work has begun!

LaKraven commented 9 years ago

Implemented on 22nd December 2014