Posted: 01:20am 04 May 2024
Copy link to clipboard |
Andrew_G Guru
|
|
|
Hi All, A simple 'survey' of how you speed up time (NOT TIME$).
That is, how do you get test code to run apparently faster so you don't get bored waiting for faults?
My usage: I'm changing some code of mine (2,000 + lines) that does something each second, minute, 15 minutes and hour. At present I have a SETTICK interrupt every second, a MOD test on TIME$ for minutes every 1, 15 and 60 minutes.
I want to speed it up to avoid having to wait say an hour (or even 15 minutes) to see if it works or not.
One option is to increment a counter every call to the SETTICK interrupt and do my MOD tests on it (so its not linked to TIME$).
I can then speed up "time" by reducing the SETTICK time from 1000 to say 100. (I'll need to watch for any processes that take a finite time to complete).
That should work - what do you do?
Cheers,
Andrew |