result 1 result 2
Go back to reference home
Go back to Timer module
functions
initInitialize a timer.
createCreate a timer object.
startStart a timer.
expiredCheck if a timer has expired.
restartRestart a timer.
types
napc__TimerRepresentation of a timer.

create

Create a timer object.

Creates a timer with a duration of duration milliseconds.

Function Protoype


napc__Timer napc_Timer_create(
    napc_time duration
);

Parameter


duration
Timer duration in milliseconds.

Example Usage


napc__Timer timer = napc_Timer_create(1000); // 1000ms = 1s

Changelog


Version
Date
Change
1.0.0
17.02.2022
initial version
Version: 1.4.1
Documentation generated at 24.03.2022 03:43:18 (UTC)
Go back to reference home
Go back to Timer module
functions
initInitialize a timer.
createCreate a timer object.
startStart a timer.
expiredCheck if a timer has expired.
restartRestart a timer.
types
napc__TimerRepresentation of a timer.
typedef napc_u32 napc_time;