Hello Yonggang, On Tue, 20 Jun 2023 08:25:06 +0800, Yonggang Luo wrote: > These are: > #define TIME_MONOTONIC 2 > #define TIME_PROCESS_CPUTIME_ID 3 > #define TIME_THREAD_CPUTIME_ID 4 C23 has these as optional time bases TIME_MONOTONIC, TIME_ACTIVE and TIME_THREAD_ACTIVE so you should stick to these names. > #define TIME_MONOTONIC_RAW 5 > #define TIME_REALTIME_COARSE 6 > #define TIME_MONOTONIC_COARSE 7 > #define TIME_BOOTTIME 8 > #define TIME_REALTIME_ALARM 9 > #define TIME_BOOTTIME_ALARM 10 > #define TIME_SGI_CYCLE 11 > #define TIME_TAI 12 Although implementations would be free to chose names for such extension as they please, I'd suggest you derive the names from the existing C standard names were this is appropriate. So this then would in particular be > #define TIME_UTC_COARSE 6 > #define TIME_UTC_ALARM 9 Thanks Jₑₙₛ -- :: ICube :::::::::::::::::::::::::::::: deputy director :: :: Université de Strasbourg :::::::::::::::::::::: ICPS :: :: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus :: :: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 :: :: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::