Skip to content

module_timer

Serge Vakulenko edited this page Aug 26, 2015 · 1 revision

Module "timer" - system time management

Full description of file timer.c.

Defines

TIMER_MSEC_PER_DAY Number of milliseconds per day.

Typedefs

timer_snap_t typedef struct timer_snap_t timer_snap_t Data structure for holding a time value.
timer_t typedef struct timer_t timer_t Data structure of a driver.

Functions

timer_snap

Return a valid snap of both days and milliseconds.

timer_days

Return the (real) time in milliseconds since uOS start.

timer_passed

Check that msec' milliseconds passed since the t0' moment.

timer_delay

Delay the current task by the given time in milliseconds.

timer_milliseconds

Return the (real) time in milliseconds since uOS start.

interval_greater_or_equal

Check that msec' milliseconds have passed. Interval' is the time interval, probably rolled over the day.

timer_init

Create task.

Files

sources/timer/timer.c sources/timer/timer.h

You can’t perform that action at this time.