CodeWalrus

Development => Calculators => Calculator News, Coding, Help & Talk => Topic started by: kotu on September 05, 2016, 05:45:42 PM

Title: CE hi res timer? [TI-84+CE]
Post by: kotu on September 05, 2016, 05:45:42 PM
 ???

Hi

Can anyone help with this

I need a hi res timer which gives a time in milliseconds at least, to time the time between frames


Thanks
Title: Re: CE hi res timer?
Post by: Adriweb on September 05, 2016, 05:50:09 PM
I'm pretty sure @MateoConLechuga can help with that :)
Title: Re: CE hi res timer? [TI-84+CE]
Post by: kotu on September 05, 2016, 06:00:21 PM
I hope so

By the way whoever reads this, @MateoConLechuga ?? lol

I played about with boot_SetTimersControlRegister and boot_GetTimer1Counter but it didn't work
Title: Re: CE hi res timer? [TI-84+CE]
Post by: MateoConLechuga on September 05, 2016, 06:12:39 PM
You have two for timers: The 32KHz crystal oscillator timer, or the CPU clock rate itself, which can vary from calculator to calculator and the current CPU set speed. As for using the timer correctly, there's an example in the tool chain. Hope this helps :)
Title: Re: CE hi res timer?
Post by: Unicorn on September 05, 2016, 06:13:50 PM
Quote from: MateoConLechuga on September 05, 2016, 06:12:39 PM
You have two for timers: The 32KHz crystal oscillator timer, or the CPU clock rate itself, which can vary from calculator to calculator and the current CPU set speed. As for using the timer correctly, there's an example in the tool chain. Hope this helps :)

I'm gonna be that one guy, but which example? :P
Title: Re: CE hi res timer?
Post by: MateoConLechuga on September 05, 2016, 06:40:13 PM
Quote from: Unicorn on September 05, 2016, 06:13:50 PM
Quote from: MateoConLechuga on September 05, 2016, 06:12:39 PM
You have two for timers: The 32KHz crystal oscillator timer, or the CPU clock rate itself, which can vary from calculator to calculator and the current CPU set speed. As for using the timer correctly, there's an example in the tool chain. Hope this helps :)

I'm gonna be that one guy, but which example? :P
Demo 3 of the toolchain @Unicorn :)
Title: Re: CE hi res timer? [TI-84+CE]
Post by: kotu on September 05, 2016, 07:25:48 PM
Bangin