Re: [fpc-pascal] timing again

2010-06-02 Thread Vinzent Höfler
Reimar Grabowski : > > If you want to get better than that, you need to get system specific, > > I'm afraid. > > That's not true. As Graeme already mentioned there is EpikTimer which is > a cross-plattform, high-resolution timer (which btw works very well for > realtime tasks). Well, that depends

Re: [fpc-pascal] timing again

2010-06-01 Thread Reimar Grabowski
> If you want to get better than that, you need to get system specific, I'm > afraid. That's not true. As Graeme already mentioned there is EpikTimer which is a cross-plattform, high-resolution timer (which btw works very well for realtime tasks). R. -- A: Because it messes up the order in w

Re: [fpc-pascal] timing again

2010-06-01 Thread Vinzent Höfler
> The standard clock for the system timer runs at 1,193,182 Hz, derived > for the original IBM PC as the 4.77 MHz processor clock divided by 4. Digging a bit deeper clarifies it: http://sos.enix.org/lxr/source/hwcore/i8254.c?v=6.5 |* Ahhh PC systems are nice toys: this maximum "strange" freque

Re: [fpc-pascal] timing again

2010-06-01 Thread Vinzent Höfler
> On Tue, 01 Jun 2010 19:58:54 +0200 > "Vinzent Höfler" wrote: > > > "spir ☣" : > > > > > Thank you. Using dos.getTime (including its last arg), the following > > > returns integer time in 10^-2s units: > > [...] > > > > > > This is the needed base for my uses. (A unit of 1s is too gross for >

Re: [fpc-pascal] timing again

2010-06-01 Thread Paul Breneman
Thank you for this precision. Where does getTime actually get its time? And where do these numbers come from; I mean why chose this time unit instead of plain 1/10 or 1/100 or 1/1000s? (1193182 does not look familiar to my eyes ;-) Do you have an idea on how to get one of those time units (ms wo

Re: [fpc-pascal] timing again

2010-06-01 Thread spir
On Tue, 01 Jun 2010 19:58:54 +0200 "Vinzent Höfler" wrote: > "spir ☣" : > > > Thank you. Using dos.getTime (including its last arg), the following > > returns integer time in 10^-2s units: > [...] > > > > This is the needed base for my uses. (A unit of 1s is too gross for > > timing, this leads

Re: [fpc-pascal] timing again

2010-06-01 Thread Vinzent Höfler
"spir ☣" : > Thank you. Using dos.getTime (including its last arg), the following > returns integer time in 10^-2s units: [...] > > This is the needed base for my uses. (A unit of 1s is too gross for > timing, this leads to endless runs; more precision than 10^-2s is > unneeded.) Actually, the r

Re: [fpc-pascal] timing again

2010-05-30 Thread spir ☣
On Tue, 18 May 2010 10:47:33 +0200 (CEST) "Tomas Hajny" wrote: > On Mon, May 17, 2010 22:25, spir ☣ wrote: > > > Hello Denis, > > > I posted a question about timing some time a go and got an answer; but let > > down for a while because other problems required my attention. So, I need > > a s

Re: [fpc-pascal] timing again

2010-05-18 Thread Tomas Hajny
On Mon, May 17, 2010 22:25, spir ☣ wrote: Hello Denis, > I posted a question about timing some time a go and got an answer; but let > down for a while because other problems required my attention. So, I need > a simple func to get the current time; mainly to benchmark various > implementation

Re: [fpc-pascal] timing again

2010-05-18 Thread Graeme Geldenhuys
Felipe Monteiro de Carvalho het geskryf: > You can use EpikTimer for that: > > http://wiki.lazarus.freepascal.org/EpikTimer > Included in the lazarus-ccr bug report is the patch that splits the EpikTimer package into Runtime and Designtime packages. Could you apply this to Lazarus-CCR please.

Re: [fpc-pascal] timing again

2010-05-18 Thread Graeme Geldenhuys
spir ☣ het geskryf: > let down for a while because other problems required my attention. So, I > need a simple func to get the current time; mainly to benchmark various > implementation choices, possibly for other needs. A very crude solution would be to use Sysutils.GetTickCount() before and afte

Re: [fpc-pascal] timing again

2010-05-17 Thread Felipe Monteiro de Carvalho
You can use EpikTimer for that: http://wiki.lazarus.freepascal.org/EpikTimer -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] timing again

2010-05-17 Thread spir ☣
Hello, I posted a question about timing some time a go and got an answer; but let down for a while because other problems required my attention. So, I need a simple func to get the current time; mainly to benchmark various implementation choices, possibly for other needs. The timer module brin