Main Menu

Timer

Started by BooBoo, 29 Dec, 2011, 08:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BooBoo

Any ideas how I could have an accurate timer not affected by my loop, AMCAF has time commands indluding seconds but realy id like milliseconds

On a thread on EAB Samurai_Crow mentions using the timer.device with Dev commands

Any ideas?

Hungry Horace

the Timer command of AMOS counts 1/50th of second, and you can reset it to zero at any point with TIMER=0 .... is that any good?

This shouldnt be affected by the loop and i use it myself to ensure that each game loop takes at least 1/50th of a second to occur. (i.e. therefore remaining unaffected by JIT settings etc)
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


BooBoo

Thanks for you reply I had a bit on an idea dividing a second by 60

Lonewolf10


Don't forget to check whether the system it's being run on is PAL or NTSC - unless you just plan to use it on an NTSC system. For PAL systems a second is 50 VBLs.


Regards,
Lonewolf10