From 211c76f9201f7ae399080c1bd13fd78483ebcea8 Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 27 Oct 2022 07:55:02 +0200 Subject: [PATCH] libc: Provide a definition for timeval --- libs/libc/include/time.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/libc/include/time.h b/libs/libc/include/time.h index 550298cf..4771862e 100644 --- a/libs/libc/include/time.h +++ b/libs/libc/include/time.h @@ -21,6 +21,13 @@ struct tm const char* tm_zone; }; +// Captures elapsed time. +struct timeval +{ + time_t tv_sec; + unsigned long tv_usec; +}; + #define CLOCKS_PER_SEC 1000 // Number of clock_t per second. #ifdef __cplusplus