Re: [Mingw-w64-public] timespec_get

2021-02-22 Thread Dmitry Kozlyuk
Thanks, Liu! 2021-02-22 09:44, Liu Hao: > > AFAICT `timespec_get(ts, TIME_UTC)` is equivalent to > > `clock_gettime(CLOCK_REALTIME, ts)`, which is > > implemented in winpthreads (and may require `-pthread`). It might have been > > left unimplemented > > because people wanted to use the POSIX one

Re: [Mingw-w64-public] timespec_get

2021-02-21 Thread Liu Hao
在 2021/2/22 上午9:21, Liu Hao 写道: > 在 2021/2/22 上午6:25, Dmitry Kozlyuk 写道: >> timespec_get() is missing from MinGW-w64 despite it appeared even in C11. >> Implementation seems to be a few lines already present in gettimeofday(). >> Is it an oversight or it's intentionally not implemented? >> >> > >

Re: [Mingw-w64-public] timespec_get

2021-02-21 Thread Liu Hao
在 2021/2/22 上午6:25, Dmitry Kozlyuk 写道: > timespec_get() is missing from MinGW-w64 despite it appeared even in C11. > Implementation seems to be a few lines already present in gettimeofday(). > Is it an oversight or it's intentionally not implemented? > > AFAICT `timespec_get(ts, TIME_UTC)` is eq

[Mingw-w64-public] timespec_get

2021-02-21 Thread Dmitry Kozlyuk
timespec_get() is missing from MinGW-w64 despite it appeared even in C11. Implementation seems to be a few lines already present in gettimeofday(). Is it an oversight or it's intentionally not implemented? ___ Mingw-w64-public mailing list Mingw-w64-pub