MCPcopy Create free account
hub / github.com/arkhipenko/TaskScheduler / micros

Function micros

tests/Arduino.h:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25inline unsigned long micros() {
26 static auto start = std::chrono::steady_clock::now();
27 auto now = std::chrono::steady_clock::now();
28 return std::chrono::duration_cast<std::chrono::microseconds>(now - start).count();
29}
30
31inline void delay(unsigned long ms) {
32 std::this_thread::sleep_for(std::chrono::milliseconds(ms));

Callers 1

_task_microsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected