The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Varying speed of a program.
05-21-2022, 09:46 AM (This post was last modified: 05-21-2022 11:49 AM by matalog.)
Post: #1
Varying speed of a program.
I have been trying to measure how long a program takes to run using TICK:


Code:
T1:=TICKS

CODE

T2:=TICKS
PRINT(T2-T1).

Which seems to do what it says it will.

The problem is that it is different every time I run the program it returns a different length. There is no random WAIT() or anything that I would have thought would vary the runtime of the program.

Any Ideas what causes the program runtime to change?

To give an idea, it has been varying between 51 and 42 seconds for one program, and between 55 and 50 seconds for another. It seems to run fastest when the calculator has just been turned on.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Varying speed of a program. - matalog - 05-21-2022 09:46 AM
RE: Varying speed of a program. - albud44 - 05-21-2022, 10:02 AM
RE: Varying speed of a program. - Gene - 05-21-2022, 10:09 PM
RE: Varying speed of a program. - matalog - 05-21-2022, 05:01 PM
RE: Varying speed of a program. - matalog - 05-21-2022, 11:47 PM
RE: Varying speed of a program. - anyfoo - 05-22-2022, 01:34 AM
RE: Varying speed of a program. - matalog - 05-24-2022, 08:43 PM



User(s) browsing this thread: 1 Guest(s)