SDL_Time(3type)

SDL_Time3type

Sdl times are signed, 64-bit integers representing nanoseconds since the unix epoch (jan 1, 1970).

Usage

#include "SDL3/SDL.h"

typedef Sint64 SDL_Time; #define SDL_MAX_TIME SDL_MAX_SINT64 #define SDL_MIN_TIME SDL_MIN_SINT64

Header file

Defined in SDL3/SDL_stdinc.h

Overview

They can be converted between POSIX time_t values with

SDL_NS_TO_SECONDS () and

SDL_SECONDS_TO_NS (), and between Windows FILETIME values with SDL_TimeToWindows () and

SDL_TimeFromWindows ().

Availability

This macro is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.