Leonardo1123
New member
Hey there! I’m working on a program that allows the user to choose from multiple scripts and the simulates Nintendo Switch controller commands to be able to grind in a video game.
Because you’re able to choose from multiple scripts, and they can be very long, I’d like for the teensy to be able to report back how long it took to execute the main loop while still connected to my computer so I can hardcore that disclaimer into my code. (I tried timing a script of a known length and extrapolating the time vs duration, but hit some snags)
All the code I found for timing and delays were for teensyduino, and I’m working with code that does not use the arduino library, just straight c code. Am I still able to use this feature?
Because you’re able to choose from multiple scripts, and they can be very long, I’d like for the teensy to be able to report back how long it took to execute the main loop while still connected to my computer so I can hardcore that disclaimer into my code. (I tried timing a script of a known length and extrapolating the time vs duration, but hit some snags)
All the code I found for timing and delays were for teensyduino, and I’m working with code that does not use the arduino library, just straight c code. Am I still able to use this feature?