ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
fps_t Struct Reference

Counters and timestamps used to calculate and report frame rate. More...

#include <include/ascii-chat/util/fps.h>

Data Fields

uint64_t frame_count
uint64_t last_fps_report_ns
uint64_t last_frame_time_ns
int expected_fps
uint64_t report_interval_ns
const char * tracker_name

Detailed Description

Counters and timestamps used to calculate and report frame rate.

Counters and timestamps used to calculate and report frame rate

Maintains timing information for FPS calculation and lag detection. All timing fields use nanosecond precision (uint64_t). Should be zero-initialized on creation.

Definition at line 53 of file fps.h.

Field Documentation

◆ expected_fps

int fps_t::expected_fps

Definition at line 57 of file fps.h.

Referenced by fps_frame_ns(), and fps_init_with_interval().

◆ frame_count

uint64_t fps_t::frame_count

Definition at line 54 of file fps.h.

Referenced by fps_frame_ns(), and fps_init_with_interval().

◆ last_fps_report_ns

uint64_t fps_t::last_fps_report_ns

Definition at line 55 of file fps.h.

Referenced by fps_frame_ns(), and fps_init_with_interval().

◆ last_frame_time_ns

uint64_t fps_t::last_frame_time_ns

Definition at line 56 of file fps.h.

Referenced by fps_frame_ns(), and fps_init_with_interval().

◆ report_interval_ns

uint64_t fps_t::report_interval_ns

Definition at line 58 of file fps.h.

Referenced by fps_frame_ns(), and fps_init_with_interval().

◆ tracker_name

const char* fps_t::tracker_name

Definition at line 59 of file fps.h.

Referenced by fps_frame_ns(), fps_init_with_interval(), and session_capture_destroy().


The documentation for this struct was generated from the following file: