Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::Time Class Reference

Utility for converting time values to milliseconds. More...

#include <flint/time/time.h>

+ Collaboration diagram for Flint::Time:

Static Public Member Functions

static FLINT_API Uint64 s_milliseconds (Uint64 ms)
 Convert milliseconds to the internal millisecond representation (identity).
 
static FLINT_API Uint64 s_seconds (float sec)
 Convert seconds to milliseconds.
 

Detailed Description

Utility for converting time values to milliseconds.

Definition at line 65 of file time.h.

Member Function Documentation

◆ s_milliseconds()

static FLINT_API Uint64 Flint::Time::s_milliseconds ( Uint64 ms)
static

Convert milliseconds to the internal millisecond representation (identity).

Parameters
msDuration in milliseconds.
Returns
The same value as a Uint64.

◆ s_seconds()

static FLINT_API Uint64 Flint::Time::s_seconds ( float sec)
static

Convert seconds to milliseconds.

Parameters
secDuration in seconds.
Returns
Equivalent duration in milliseconds, rounded to the nearest ms.

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