13 using namespace std::chrono;
15 auto now = time_point_cast<milliseconds>(system_clock::now());
17 using sys_milliseconds = decltype(now);
19 return now.time_since_epoch().count();
23 void delay(
unsigned long ms){
24 std::this_thread::sleep_for(std::chrono::milliseconds(ms));
28 void delayMicroseconds(
unsigned int us){
29 std::this_thread::sleep_for(std::chrono::microseconds(us));
33 inline unsigned long micros(
void){
34 using namespace std::chrono;
36 auto now = time_point_cast<microseconds>(system_clock::now());
38 using sys_milliseconds = decltype(now);
40 return now.time_since_epoch().count();
If you want to use the framework w/o Arduino you need to provide the implementation of a couple of cl...