Returns the time taken to run a function. Must be called immediately after a function is run as the variable returned is overwritten each time a function from this library is called. Primarily used in the diagnostics sketch included in the library to track function time. This function can only be called if #define RUNDIAGNOSTIC is uncommented in SPIFlash.h
| 174 | //Returns the time taken to run a function. Must be called immediately after a function is run as the variable returned is overwritten each time a function from this library is called. Primarily used in the diagnostics sketch included in the library to track function time. |
| 175 | //This function can only be called if #define RUNDIAGNOSTIC is uncommented in SPIFlash.h |
| 176 | float SPIFlash::functionRunTime(void) { |
| 177 | #ifdef RUNDIAGNOSTIC |
| 178 | return _spifuncruntime; |
| 179 | #else |
| 180 | return 0; |
| 181 | #endif |
| 182 | } |
| 183 | |
| 184 | //Returns the library version as three bytes |
| 185 | bool SPIFlash::libver(uint8_t *b1, uint8_t *b2, uint8_t *b3) { |
nothing calls this directly
no outgoing calls
no test coverage detected