[Lazarus] Portable way to get accurate timestamps?

Vincent Snijders vincent.snijders at gmail.com
Tue Feb 22 09:40:34 CET 2011


2011/2/22 Michael Schnell <mschnell at lumino.de>:
> On 02/22/2011 06:56 AM, Bo Berglund wrote:
>>
>> I should have added that instead of a sawtooth like noise component
>> using Frac(Now()) * 24*3600 to get the second since midnight gives
>> random noise in the seconds values of about 3-4 ms.
>
> No wonder. In a non-realtime OS like Windows of Linux, you can't create
> sound using a timer in a user land program.

In this case I wouldn't call "random noise" sound, since you cannot hear it. :-)

Vincent




More information about the Lazarus mailing list