[Test] Reset timer for every unit test and provide timestamps for log messages (#17028)
This commit is contained in:
parent
e2ab98f960
commit
962e4c0e18
20 changed files with 1011 additions and 41 deletions
|
@ -15,8 +15,9 @@
|
|||
*/
|
||||
|
||||
#include "timer.h"
|
||||
#include <stdatomic.h>
|
||||
|
||||
static uint32_t current_time = 0;
|
||||
static atomic_uint_least32_t current_time = 0;
|
||||
|
||||
void timer_init(void) {
|
||||
current_time = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue