mrimer wrote:
Kwakstur wrote:
Actually, in TI-BASIC, I simulate real-time by forcing the program to increment a variable to some rediculously high number in a For loop. After all, computers are not infinitely fast.
Interesting. I'm going to risk looking stupid here and ask is this on TI calculators or some other system? Is there no query to a real-time clock there?
Yes and yes, but you know I love to elaborate, so buckle up.
Yep, TI-BASIC is the copywrited name for the BASIC language that Texas Instruments calculators use. Commands, like characters, are all 1-byte in the system (even though they are displayed as strings), meaning the number of letters and punctuation marks it can display limits the number of functions it can have.
Why am I mentioning this? Well, I'm saying this to show why real-time is not implemented. If we were to add any more commands, we would have to give up lowercase letters. In fact, there is no quartz in the calculator, so you couldn't even call it in assembly.
Because TI-BASIC is so slow, just counting to 500 takes a second. But I think you could have a C++ program that has a For loop in a For loop. Tell it to count to the highest unsigned 4-bit number about 4 times and I think it takes 2 seconds. Actually, I use While loops so that user input can interupt it, but, still, the main idea is to make it count to waste time.
I'm even going to use this system in C++; it's easier than figuring out how to make a program call for quartz feedback. Or, worse yet, making it read the computer's current time and inferring time elapses since then.
____________________________
Also known as ExpHP everywhere else.
[Last edited by Kwakstur at 08-27-2007 11:33 PM]