diff options
author | Jim Huang <jserv@biilabs.io> | 2019-06-24 23:54:38 +0800 |
---|---|---|
committer | Jim Huang <jserv.tw@gmail.com> | 2019-06-24 23:56:19 +0800 |
commit | 855e2f0d89030e229bc8f474eddc329dcb6a488e (patch) | |
tree | 3b0ca895524dde315570cfa84db2888950cbff9f /docs/group__malloc.js | |
parent | 91222691cb21a6fb7a9760a264ff1183a1237fd4 (diff) |
Use clock_gettime() instead of timespec_get()
clock_gettime(CLOCK_REALTIME, &ts) is equivalent to timespec_get(&ts,
TIME_UTC) in C11.
It has the advantage that avoids the following building error when building
with macOS:
warning: 'timespec_get' is only available on macOS 10.15 or newer
[-Wunguarded-availability-new]
Diffstat (limited to 'docs/group__malloc.js')
0 files changed, 0 insertions, 0 deletions