π
<-

Less than 1 Millisecond Timing

Pour TI-Nspire OS 3.0 ou ultérieur.

Less than 1 Millisecond Timing

Unread postby Brindlefly » 31 May 2015, 21:44

How can I run code at an interval of less than one millisecond? The Ti Lua API only allows me to use the timer event at an interval of greater than 10 milliseconds, or the timer.getMilliSecCounter() function which is still not a small enough interval.
User avatar
Brindlefly
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 0%
 
Posts: 3
Joined: 31 May 2015, 21:37
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Less than 1 Millisecond Timing

Unread postby pierrotdu18 » 31 May 2015, 21:49

You definitively can't.
Anyway, if you updated the screen quicker than 100Hz it wouldn't work as all the calculations would take more time than your period :p (and that's often the case with a period of 0.01 s only).
Last edited by pierrotdu18 on 31 May 2015, 21:50, edited 1 time in total.
Bonjour
User avatar
pierrotdu18Premium
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 40.5%
 
Posts: 975
Joined: 07 Nov 2013, 20:18
Location: Paris V
Gender: Male
Calculator(s):
MyCalcs profile
Class: MP* Lycée Henri IV

Re: Less than 1 Millisecond Timing

Unread postby Brindlefly » 31 May 2015, 22:00

So is less than one millisecond timing a ndless feature? There are some registers in the Gameboy Classic that increment faster than a millisecond, which makes me believe that the emulators can update faster than a millisecond or they just convert that calculation to one done every millisecond.
User avatar
Brindlefly
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 0%
 
Posts: 3
Joined: 31 May 2015, 21:37
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Less than 1 Millisecond Timing

Unread postby pierrotdu18 » 31 May 2015, 22:04

Oh, all gets different if you use Ndless. The C/C++ languages don't work as Lua: in Lua you have a timer that updates every x seconds, and in C/C++ you have no timer, just a loop; so, it is way faster and you even sometimes have to slow it down :p
Last edited by pierrotdu18 on 31 May 2015, 22:04, edited 1 time in total.
Bonjour
User avatar
pierrotdu18Premium
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 40.5%
 
Posts: 975
Joined: 07 Nov 2013, 20:18
Location: Paris V
Gender: Male
Calculator(s):
MyCalcs profile
Class: MP* Lycée Henri IV

Re: Less than 1 Millisecond Timing

Unread postby Brindlefly » 31 May 2015, 22:44

Darn, thanks for the help anyways.
User avatar
Brindlefly
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 0%
 
Posts: 3
Joined: 31 May 2015, 21:37
Gender: Not specified
Calculator(s):
MyCalcs profile


Return to Nspire-Lua

Who is online

Users browsing this forum: ClaudeBot [spider] and 5 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
2090 utilisateurs:
>2061 invités
>22 membres
>7 robots
Record simultané (sur 6 mois):
7582 utilisateurs (le 25/06/2025)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)