| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cstdint> | ||
| 4 | #include <ctime> | ||
| 5 | |||
| 6 | ✗ | static inline int64_t esp_timer_get_time(void) { | |
| 7 | // Return time in microseconds | ||
| 8 | struct timespec ts; | ||
| 9 | ✗ | clock_gettime(CLOCK_MONOTONIC, &ts); | |
| 10 | ✗ | return (int64_t) ts.tv_sec * 1000000LL + ts.tv_nsec / 1000LL; | |
| 11 | } | ||
| 12 |