diff options
| author | Simon Glass <[email protected]> | 2025-02-07 11:30:35 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-02-11 20:10:58 -0600 |
| commit | 5f6a59e03eff0f29295ce12b3807cbac7334e0aa (patch) | |
| tree | ea15fe355f0ff7c4f941da2166d0010344adb6e1 /drivers/timer/sandbox_timer.c | |
| parent | 5c47e432fdf1e545acccbb60f89ff4e97793fe05 (diff) | |
test: Keep track of suite duration
Show the time taken by each test suite with 'ut all' and the total time
for all suites.
Take care to remove any sandbox time-offset from the values.
Fix the comment-format on timer_test_add_offset() while we are here.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/timer/sandbox_timer.c')
| -rw-r--r-- | drivers/timer/sandbox_timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c index e8b54a02965..c1baf3c69ec 100644 --- a/drivers/timer/sandbox_timer.c +++ b/drivers/timer/sandbox_timer.c @@ -18,6 +18,11 @@ void timer_test_add_offset(unsigned long offset) sandbox_timer_offset += offset; } +ulong timer_test_get_offset(void) +{ + return sandbox_timer_offset; +}; + u64 notrace timer_early_get_count(void) { return os_get_nsec() / 1000 + sandbox_timer_offset * 1000; |
