Undoc'd Feature?
|
07-04-2022, 09:41 AM
(This post was last modified: 07-04-2022 09:53 AM by toml_12953.)
Post: #16
|
|||
|
|||
RE: Undoc'd Feature?
(07-03-2022 06:24 PM)Wes Loewer Wrote:(07-03-2022 02:18 PM)toml_12953 Wrote: Here's the entire C program: The reason it performs the same calculation 1000 times is because it was written for a fast PC where the time for a single run isn't measurable. If you do the calculation 1000 times, you can then normalize the result by dividing the runtime by 1000 to get the time it took to run it once. For very fast PCs you might have to increase the 1000 to 10000 or even 1000000 to get a meaningful time measurement. Here's an ANSI/ISO BASIC (ParactBASIC compiler) program to perform the same function. See how I had to use a larger number to get the result? Result: 876 Time: 0.00001229 seconds Code: LET t0=time Tom L Cui bono? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)