Is it possible to count time while program is running? I wanted to add screen with score and how long it toke to beat the game, but I don't know how to do this.
Time counting, pls help
Posted 03 December 2017 - 11:27 AM
Casio Basic does not have timer commands.
So if you do not need to measure exact time, just using loop with incremental variable may help;
LpWhile K≠[keucode of key that you want to get out of this loop with]
then use C to refer count of loop.
Edited by Krtyski, 03 December 2017 - 11:28 AM.
Posted 21 June 2019 - 12:40 AM
Time calculations are created based upon loop routines.
Each line of code consumes time and therefore creates a speed bump in the loop which needs a comparator to rectify it.
Another issue is battery voltage. As voltage decreases the program slows down resulting in longer calculation cycles.
Thermal variation also plays havoc with calculation speed and is a known factor in computer performance. The warmer the device the slower the calculation.
The closest approximation is a program I wrote as a countdown timer based upon real world timings over extended periods.
"Countdown timer duration in seconds"?->A
For 1->B To A Step 0.01
Locate 7,4,"Time up!"
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users