Closed jimmyli97 closed 10 years ago
To make this even better we should add conditional compilation.
RobotC can compile for debug or release. We can check for _DEBUG
in our debug fns, and only compile if it's on.
We can also add runtime measurement functions by running a timer
Ok turns out this is completely unnecessary - RobotC provides all you need to debug. I'm going to write up an issue on creating a debug standard, but for now this is what is necessary:
Runtime measurement is most likely useless because RobotC is so fast already. If we really need to improve performance, a few timers would be very easy to implement (we don't need a whole library for this)
This is actually really easy, see this