CLOCKS_PER_SEC is 1000,000
Posted: Fri Sep 11, 2020 1:00 pm
v4.1, SHA-1: 84b51781c80740fda92784dafcfc96c13b0d8b66
ESP IDF legacy build under mingw32
Yields 1000,000
However:
Yields 1000
clock() returns ticks in milliseconds.
I could not find the definition of CLOCKS_PER_SEC in the IDF folder
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