SBB Micro
Source code for the self-balancing-bike microcontroller unit (Teensy 4.1-based). 🚀️
Loading...
Searching...
No Matches
Timing Struct Reference

Time taken by functions. More...

#include <objects.h>

Public Attributes

uint32_t dt_cycle
 Cycle time.
 
uint32_t tet
 Task execution time.
 
uint32_t dt_debug
 Debug time.
 
uint32_t dt_logger
 Logger time.
 
uint32_t max_tet = 0
 Maximum TET.
 
uint32_t min_tet = -1
 Minimum TET.
 

Detailed Description

Time taken by functions.

The struct contains values to count the time taken by functions.

Member Data Documentation

◆ dt_cycle

uint32_t Timing::dt_cycle

Cycle time.

The time at which the main cycle is called. The value is equal to SAMPLING_TIME, except for possible overrunning.

See also
SAMPLING_TIME

◆ dt_debug

uint32_t Timing::dt_debug

Debug time.

The time taken by the debugging. The value is much lower than SAMPLING_TIME, except for possible overrunning.

See also
Debugging SAMPLING_TIME

◆ dt_logger

uint32_t Timing::dt_logger

Logger time.

The time taken by the data logging. The value is much lower than SAMPLING_TIME, except for possible overrunning.

See also
Data logging SAMPLING_TIME

◆ max_tet

uint32_t Timing::max_tet = 0

Maximum TET.

◆ min_tet

uint32_t Timing::min_tet = -1

Minimum TET.

◆ tet

uint32_t Timing::tet

Task execution time.

The Time taken by the whole cycle. The value is lower than SAMPLING_TIME, except for possible overrunning.

See also
SAMPLING_TIME