stopwatch 计时
This commit is contained in:
@@ -17,6 +17,7 @@ typedef struct {
|
|||||||
OS_STATIC_FORCE_INLINE
|
OS_STATIC_FORCE_INLINE
|
||||||
void stopwatch_init(stopwatch_t* self) {
|
void stopwatch_init(stopwatch_t* self) {
|
||||||
self->start_tick = os_systick_safe_get();
|
self->start_tick = os_systick_safe_get();
|
||||||
|
self->end_tick = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
OS_STATIC_FORCE_INLINE
|
OS_STATIC_FORCE_INLINE
|
||||||
|
|||||||
Reference in New Issue
Block a user