SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma::Timer Class Reference

#include <ma_osal.h>

Collaboration diagram for ma::Timer:

Public Member Functions

 Timer (uint32_t ms, void(*fn)(ma_timer_t *, void *), void *arg, bool oneshot=false) noexcept
 
 ~Timer () noexcept
 
 operator bool () const
 
void set (ma_tick_t ms=Tick::waitForever)
 
void start ()
 
void stop ()
 

Constructor & Destructor Documentation

◆ Timer()

ma::Timer::Timer ( uint32_t  ms,
void(*)(ma_timer_t *, void *)  fn,
void *  arg,
bool  oneshot = false 
)
noexcept

◆ ~Timer()

ma::Timer::~Timer ( )
noexcept

Member Function Documentation

◆ operator bool()

ma::Timer::operator bool ( ) const

◆ set()

void ma::Timer::set ( ma_tick_t  ms = Tick::waitForever)

◆ start()

void ma::Timer::start ( )

◆ stop()

void ma::Timer::stop ( )