Part Number: MSP432P401R
Tool/software: Code Composer Studio
I have some code that is supposed to determine the amount of time elapsed and in this simple example that I have, it outputs the wrong time elapsed.
#include <sys/time.h> int main(){ clock_t t; t = clock(); delay(5000); t = clock() - t; printf ((float)t)/CLOCKS_PER_SEC); }
OUTPUT:
0.00