[Lazarus] How to program with time in milliseconds?

Reimar Grabowski reimgrab at web.de
Thu May 15 20:09:28 CEST 2014


On Thu, 15 May 2014 14:34:02 -0300
Junior <lazarus.linux at gmail.com> wrote:

> The conversation was good, but I wonder if the epiktimer component would 
> be the correct option. I need precision, I'll be working with many 
> timers in milliseconds.

In general it does it's job good enough for realtime purposes but take a look at the castle game engine they have their own cross plattform time keeping solution. For simple stuff even now() is good enough.
I am not sure why you need precision because games normally don't need that precise time keeping.
I hope you know what you are doing because basing your game on timers doesn't sound like a reasonable design decision to me.

R.




More information about the Lazarus mailing list