diff options
| author | Dominik Kaiser | 2025-01-18 12:56:50 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-01-18 12:56:50 +0100 |
| commit | 7220dcf3ca89897962c1e019ad675bbb6b2e09fa (patch) | |
| tree | c51da7d69c6710815c5c4c29bf5df2d91af9cbd9 /philo/include/ft_utils.h | |
| parent | 56afbb3011c346dfc0d9e6d92e76cb13fdb272c8 (diff) | |
| download | Philosophers-7220dcf3ca89897962c1e019ad675bbb6b2e09fa.tar.gz Philosophers-7220dcf3ca89897962c1e019ad675bbb6b2e09fa.zip | |
Outsource ft_cur_time_in_ms into own func
Diffstat (limited to 'philo/include/ft_utils.h')
| -rw-r--r-- | philo/include/ft_utils.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/philo/include/ft_utils.h b/philo/include/ft_utils.h index 4000815..19fa2ea 100644 --- a/philo/include/ft_utils.h +++ b/philo/include/ft_utils.h @@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/01/17 11:57:44 by dkaiser #+# #+# */ -/* Updated: 2025/01/18 12:47:25 by dkaiser ### ########.fr */ +/* Updated: 2025/01/18 12:56:44 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -27,5 +27,13 @@ int ft_err(const char *str); */ int ft_atoi(const char *str); +/* +** Returns current time in milliseconds +*/ +unsigned int ft_cur_time_in_ms(); + +/* +** Prints "timestamp_in_ms id str" +*/ void ft_log(int id, const char *str); #endif |
