nn::os::Timer Classclass Timer :public nn::os::WaitObject
Class for representing timers.
Timers, like events, have two possible states: signaled and non-signaled. The Wait operation for a Timer waits until the event enters the signaled state.
There are two types of timers: those that are manually reset and those that are automatically reset. This characteristic can be configured by parameters during initialization. See the documentation for the Event class for more details about the differences.
Timers do not enter the signaled state immediately. They do so only after after the StartOneShot function is called and the specified timespan elapses.
Alternately, by calling StartPeriodic you can make them enter the signaled state on a periodic basis.
You can create up to 8 Timer objects. Note also that different functions might use up resources that count against this limit.
Timer
|
Timer initialization. | |
|---|---|---|
Initialize
|
Timer initialization. | |
TryInitialize
|
Tries to initialize a timer. | |
Finalize
|
Destroys a timer. | |
~Timer
|
Destructor. | |
StartOneShot
|
Starts a timer. | |
StartPeriodic
|
Starts a timer. | |
Signal
|
Sets a timer to the signaled state immediately. | |
Wait
|
Waits until a timer notification. | |
Stop
|
Stops a timer that has been started. | |
ClearSignal
|
Clears a timer. | |
| S |
GetCurrentCount
|
Gets the number of Timer objects that are currently being used. |
| S |
GetMaxCount
|
Gets the maximum number of Timer objects that can be used simultaneously. |
nn::util::NonCopyable
nn::os::HandleObject
nn::os::WaitObject
nn::os::Timer
CONFIDENTIAL