Tiny header-only library with cross-platform time functions
- C 100%
| clock.h | add CLOCKDEF | |
| LICENSE | bump license and add it to the header | |
| README.md | put declarations and definitions in different include guards. print an error when _POSIX_C_SOURCE is too old | |
clock.h
Tiny header-only library with cross-platform time functions. _POSIX_C_SOURCE >= 200112L is required on linux.
Honestly, I'm curious as to why something like this does not exist in the C library in the first place.