logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetPerformanceCounter - Get the current value of the high resolution counter.

Availability

       This function is available since SDL 3.2.0.

Description

       This function is typically used for profiling.

       The  counter  values  are  only  meaningful  relative  to  each  other. Differences between values can be
       converted to times by using

       SDL_GetPerformanceFrequency ().

Header File

       Defined in SDL3/SDL_timer.h

Name

       SDL_GetPerformanceCounter - Get the current value of the high resolution counter.

Return Value

       ( Uint64 ) Returns the current counter value.

See Also

(3), SDL_GetPerformanceFrequency(3)

Simple Directmedia Layer                           SDL 3.2.10                       SDL_GetPerformanceCounter(3)

Synopsis

#include"SDL3/SDL.h"Uint64SDL_GetPerformanceCounter(void);

Thread Safety

       It is safe to call this function from any thread.

See Also