Maurice Lombardi wrote:
Olivier Pécheux wrote:
Hi,
Some of my beginners found that Delay work proprely for timing more than 12 ms. Under 11 are no delay but the C'delay do.
I don't find it in the Bug list.
in PC's time is usually increased by a hardware timer with ticks every 1/60th second. So this does not seem unreasonable. Are you sure that the C routine you speak about measure really microseconds, or just put out a number in microseconds which is in fact the one given by ticks of the timer ? What is actually the C function you use to measure the delay ? Or may be the delay is obtained with some programming loop ?
Maurice
Delay is a loop I think. It's well known in BP beacause of the famous error 200 on the 200Mhz PC.
I dont mind that delay is realy or not one ms, but I want a time and 1/18 s is too big.
I forgot to say I work with Win95/gpc2952b.zip found on agnes.dida.physik.uni-essen.de/home/maurice/
The test program is:
Program test_delay; Uses Crt; Procedure DelayC(Temps:Integer); AsmName 'delay'; Var N,I:integer; Begin For N:=15 Downto 1 Do For I:=1 To 20 Do Begin Write(N:4); Delay(N); Delay(N) End End.
If i use delay, the end is done quickly. If i remplace by delayC (from the C library), it works.
Opie