Module: clock
Synopsis
#include <core/clock.h>
Module to keep track of elapsed time.
Structs
clock
Field | Access | Type |
---|---|---|
ticks | (+) | unsigned int |
ticks
Time point on clock initialization in milliseconds.
Functions
clock_start
Start capturing time in the clock clock
.
void
clock_start(struct clock *clock);
clock_elapsed
Returns the elapsed time since the last call to clock_start in
the clock clock
.
unsigned int
clock_elapsed(const struct clock *clock);