-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Sadoming edited this page Jan 15, 2024
·
2 revisions
Welcome to the Philosophers wiki!
size_t get_current_time(void)
{
struct timeval time;
if (gettimeofday(&time, NULL) == -1)
write(2, "gettimeofday() error\n", 22);
return (time.tv_sec * 1000 + time.tv_usec / 1000);
}