diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_get_fps_count.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/ft_get_fps_count.c b/src/ft_get_fps_count.c index f7f0177..1f717e8 100644 --- a/src/ft_get_fps_count.c +++ b/src/ft_get_fps_count.c @@ -1,7 +1,7 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* ft_key_loop.c :+: :+: :+: */ +/* ft_get_fps_count.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ @@ -16,25 +16,6 @@ #include <stdint.h> #include <time.h> -static float - ft_clock_to_ms(clock_t ticks) -{ - return ((ticks / (float)CLOCKS_PER_SEC) * 1000.0); -} - -static void - ft_handle_firing(clock_t dt, t_cub *cl) -{ - static clock_t curr_time = 0; - - curr_time += dt; - if (dt > 0 && ft_clock_to_ms(curr_time) > 300.0) - { - cl->plist.fire = 0; - curr_time -= CLOCKS_PER_SEC; - } -} - void ft_get_fps_count(clock_t dt, t_cub *cl) { |