video_monitor_fps_statistics - small cleanup
This commit is contained in:
parent
67518b3c6c
commit
bdb54d91b7
|
@ -1032,15 +1032,13 @@ bool video_monitor_fps_statistics(double *refresh_rate,
|
||||||
bool video_monitor_get_fps(char *buf, size_t size,
|
bool video_monitor_get_fps(char *buf, size_t size,
|
||||||
char *buf_fps, size_t size_fps)
|
char *buf_fps, size_t size_fps)
|
||||||
{
|
{
|
||||||
retro_time_t new_time;
|
|
||||||
static retro_time_t curr_time;
|
static retro_time_t curr_time;
|
||||||
static retro_time_t fps_time;
|
static retro_time_t fps_time;
|
||||||
|
retro_time_t new_time = retro_get_time_usec();
|
||||||
rarch_system_info_t *system = rarch_system_info_get_ptr();
|
rarch_system_info_t *system = rarch_system_info_get_ptr();
|
||||||
|
|
||||||
*buf = '\0';
|
*buf = '\0';
|
||||||
|
|
||||||
new_time = retro_get_time_usec();
|
|
||||||
|
|
||||||
if (video_driver_frame_count)
|
if (video_driver_frame_count)
|
||||||
{
|
{
|
||||||
static float last_fps;
|
static float last_fps;
|
||||||
|
|
Loading…
Reference in New Issue