summaryrefslogtreecommitdiff
path: root/LEGACY
diff options
context:
space:
mode:
authorFRIGN2014-06-23 16:51:51 +0200
committerRoberto E. Vargas Caballero2014-06-24 21:45:36 +0200
commit5edeec1b20fcb5900d4f1408594d1e76b6c544f0 (patch)
tree4eb8d652a1af13c65cdef726941016d3f4c2e556 /LEGACY
parent738f555f66e2423678d7f81344131d2e01f7c2e9 (diff)
downloadst-5edeec1b20fcb5900d4f1408594d1e76b6c544f0.tar.gz
st-5edeec1b20fcb5900d4f1408594d1e76b6c544f0.tar.xz
st-5edeec1b20fcb5900d4f1408594d1e76b6c544f0.zip
Use monotonic clock to prevent timing issues
This patch replaces the gettimeofday()/timeval-system with uses of clock_gettime() with a monolithic clock and timespec-structs. gettimeofday() is not accurate and prone to jumps and POSIX.1-2008 marks it as obsolete. Read more here [0]. The patch should speak for itself and decreases the binary size for me by almost 200K(!). [0]: http://blog.habets.pp.se/2010/09/gettimeofday-should-never-be-used-to-measure-time Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
Diffstat (limited to 'LEGACY')
0 files changed, 0 insertions, 0 deletions