? Using MICPOS for timing ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Using MICPOS for timing

MICPOS updates twice as often (2000x per second) as MILLISEC, so it can be used for more accurate timing. There aren't many situations where this is useful, and it's probably not a good idea to rely on this for anything important (apparently it doesn't even work on the Wii U). XON MIC MICSTART 3,0,0 'start timer: VAR FRAMESTART=MICPOS '... 'end timer: VAR TIME=MICPOS-FRAMESTART IF TIME<0 THEN INC TIME,MICSIZE VAR SECONDS#=TIME*60/32730
Author
12Me21
Updated
Rating
1 vote
Categories
Keywords
2 Comment(s) DFrost DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength hmmmmm.... DFrost DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength cool!!!