From 48c2ba5ee339487ef56ba58d861cb923e3d0c432 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 8 Nov 2011 23:42:26 +0100 Subject: JOGL: Add 'struct timespec' (POSIX) utils for native time handling --- src/jogl/native/timespec.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/jogl/native/timespec.h (limited to 'src/jogl/native/timespec.h') diff --git a/src/jogl/native/timespec.h b/src/jogl/native/timespec.h new file mode 100644 index 000000000..671eb4716 --- /dev/null +++ b/src/jogl/native/timespec.h @@ -0,0 +1,19 @@ +#ifndef _timespec_h +#define _timespec_h + +#include + +void timespec_now(struct timespec *ts); +void timespec_addms(struct timespec *ts, long ms); +void timespec_addns(struct timespec *ts, long ns); + +/** returns 0: a==b, >0: a>b, <0: a