--- sorry, previous mail seems to be digested by some scrambler ---

On 05/14/2014 09:44 PM, Michael Van Canneyt wrote:

Hopefully you got rid of the fpgettimeofday, or else the component is
no better than using Now() :-)

Michael,

Even though I of course was aware of this, I did used fpgettimeofday to implement TTimer with the "ActiveNoGui" WidgetType, as I did not find something more appropriate in the RTL.

Of course I could try to directly read the X86's "Performance counter" register, but there were discussions if same would by reliable usable in CPU / OS combinations. I also could try to use vDSO in Linux archs (is that always available ?)

Of course in the end I need something that works for any CPU and OS.

At best, fpgettimeofday itself should be improved (maybe using "Performance counter" register if the Arch allows for or vDSO if the OS allows for).

-Michael


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to