Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
Public Member Functions | List of all members
modules::time::Timebase Class Reference

#include <timebase.h>

Public Member Functions

void Init ()
 Initializes the Timebase class - sets the timers and prepares the internal variables.
 
uint16_t Millis () const
 
void Isr ()
 
bool Elapsed (uint16_t start, uint16_t timeout) const
 

Detailed Description

A basic time tracking class Works on top of processor timers and provides real-time steady clock (at least what the CPU thinks ;) )

Member Function Documentation

◆ Elapsed()

bool modules::time::Timebase::Elapsed ( uint16_t  start,
uint16_t  timeout 
) const
Returns
true if the timeout elapsed from the start handles correctly timer counter overflows

◆ Millis()

uint16_t modules::time::Timebase::Millis ( ) const
Returns
current milliseconds elapsed from the initialization of this class (usually the start of the firmware)

The documentation for this class was generated from the following files: