nn::os::Alarm::SetOneShot Member Function

Syntax

#include <nn/os.h>

void SetOneShot(
     nn::fnd::TimeSpan time,
     AlarmHandler handler,
     void * param
);

Arguments

Name Description
in time How long to wait until calling the handler (ns).
in handler Alarm handler.
in param Parameter to pass to the handler.

Return Values

None.

Description

Sets a one-shot alarm. Calls the handler only once after the specified time has elapsed.


CONFIDENTIAL