aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/common/Platforms.c
Commit message (Collapse)AuthorAgeFilesLines
* Add Clock, implementing proper monotonic and wallclock time using Instant ↵Sven Gothel2023-03-061-25/+0
| | | | | | | | | (sec + nsec), currentTimeMillis() is also monotonic now, reused by Platform. Dropped Platform.currentTimeMicros() Clock and its implementation was copied from jaulibs, a spin-off from Direct-BT. The implementation uses `clock_gettime(CLOCK_MONOTONIC, &t)` and is considered safe and high-performant as it avoids a kernel call via VDSO (GNU/Linux).
* Platform: Add accurate currentTimeMillis() and currentTimeMicros() native ↵Sven Gothel2013-08-151-0/+25
methods, based on 'gettimeofday(..)'