Files
mruby-mruby/mrbgems
cremno c47cc0c3bb call C11's timespec_get()
gettimeofday() is an obsolescent POSIX function which may be removed in
a future version. POSIX recommends using clock_gettime() (also POSIX)
instead, but it isn't available on OS X or Windows (at least with MSVC
and older MinGW versions).

Whereas timespec_get() is part of ISO C11 and mruby uses some small
other C11 features too. It isn't universally available yet either, but
it might be in the future. And Visual C++ 2015 implements it! Since
mruby strives for ISO C and not POSIX compatibility, I think it's a
reasonable choice.

TIME_UTC is used instead of __STDC_VERSION__, because if TIME_UTC is
defined, then most likely timespec_get() is too. This isn't true in case
of  __STDC_VERSION__ (see MSVC).
2015-03-22 22:52:12 +01:00
..
2014-06-02 23:06:02 +09:00
2014-12-11 06:54:15 +09:00
2014-12-23 22:17:07 +09:00
2014-08-22 16:51:04 +09:00
2014-03-25 22:33:53 +09:00
2015-01-13 16:32:30 +09:00
2015-03-22 22:52:12 +01:00
2014-04-30 09:50:14 +09:00
2014-11-18 23:33:32 +09:00