Hiva::Timer::Stop

Description

Stops a timer.

Prototype

void Hiva::Timer::Stop()

Parameters

None

Returns

None

Usage

You can invoke this interface to stop the timer created by invoking CreateTimer.

Precautions

  • In oneshot mode, if the time is not reached, the timer is stopped.
  • In oneshot mode, if the callback function has been executed, invoking this interface does not affect the timer.
  • When the callback function is being executed, the callback execution proceeds when this interface is invoked.