[Lazarus] How to program with time in milliseconds?

Michael Schnell mschnell at lumino.de
Fri May 23 11:10:42 CEST 2014


(should we start a new mailing list thread ? )

Graeme,

While doing the said modifications I could not continue to have
       function SystemSleep(Milliseconds: Integer):integer; Virtual;
       function CalibrateCallOverheads(Var TimeBase:TimebaseData) : 
Integer; Virtual;
       function CalibrateTickFrequency(Var TimeBase:TimebaseData): 
Integer; Virtual;
as an overidable functions.

I understand that these functions are used in the TEpikTimer.Create.
Hence when virtual you could create a sibling class of TEpikTimer that 
provides alternate implementations of these function.

Who would want to do this ? Is this necessary ?

If yes it might make sense to implement an alternator creator that is 
called to allow for doing a re-calibration with alternate 
implementations of these functions.

Would it be necessary to support multiple instances of different 
siblings of TEpikTimer which use individual calibration processes ?

-Michael






More information about the Lazarus mailing list