libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_timer.h File Reference

Go to the source code of this file.

Data Structures

struct  GblTimer
 

Macros

Initialization

Macros used for initializing a timer

#define GBL_TIMER_INIT
 
#define GBL_TIMER(name)
 

Detailed Description

GblTimer simple system timer/stopwatch API.

This file contains GblTimer and its respective API. GblTimer is a nanosecond-resolution stopwatch-style API for measuring the amount of time elapsed between two points in time.

Todo:
  • make profiler out of a stack of these
Author
2023 Falco Girgis

Definition in file gimbal_timer.h.

Macro Definition Documentation

◆ GBL_TIMER_INIT

#define GBL_TIMER_INIT

Value to assign to a GblTimer during initialization.

Definition at line 25 of file gimbal_timer.h.

◆ GBL_TIMER

#define GBL_TIMER (   name)

Declares a GblTimer with the given name and initializes it.

Definition at line 26 of file gimbal_timer.h.