diff options
author | Sven Gothel <[email protected]> | 2023-03-07 01:02:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-07 01:02:19 +0100 |
commit | 1842451b0e49ac1899ed3ab3515021a6077aff92 (patch) | |
tree | ccbd7423b0127c89b687a4fd251e461bb5841a5a /src/java/jogamp | |
parent | b773048aee7ebfb00b7ae7b45ef9f49e88ebc5a4 (diff) |
Clock: Consider return code on failed native clock_gettime(..) call; Add Win32 clock_gettime() implementation.
Consider return code on failed native clock_gettime(..) call
- Return Instant.EPOCH for all Instant variations (essentially 0)
- Return 0 for all 'long' variations (ms, ns)
Add Win32 clock_gettime() implementation.
- Source: https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-libraries/winpthreads/src/clock.c
- Public Domain within mingw-w64, included here to simplify linkage.
- Tested on Win10 64bit w/ TestTextRendererNEWT00, all values are OK
Diffstat (limited to 'src/java/jogamp')
0 files changed, 0 insertions, 0 deletions