ESP IDF legacy build under mingw32
Code: Select all
#include <algorithm>
#include <map>
#include <string>
#include <vector>
#include <mutex>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
printf("TICKS: %d\n", CLOCKS_PER_SEC);
However:
Code: Select all
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
#include <map>
#include <string>
#include <vector>
#include <mutex>
printf("TICKS: %d\n", CLOCKS_PER_SEC);
clock() returns ticks in milliseconds.
I could not find the definition of CLOCKS_PER_SEC in the IDF folder