GCC Code Coverage Report


Directory: ./
File: test/unit-tests/stubs/esp_timer.h
Date: 2025-12-16 19:41:02
Exec Total Coverage
Lines: 0 3 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

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