From c3dc7fbdb9437f773146926b41003df32ba756d1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 17 Jun 2013 04:09:52 +0200 Subject: timespec.c/h: Add 'long timespec_microseconds(..)' --- src/jogl/native/timespec.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/native/timespec.c') diff --git a/src/jogl/native/timespec.c b/src/jogl/native/timespec.c index 50f0ca8c5..a69f4635e 100644 --- a/src/jogl/native/timespec.c +++ b/src/jogl/native/timespec.c @@ -75,3 +75,8 @@ long timespec_milliseconds(struct timespec *a) { return a->tv_sec*1000 + a->tv_nsec/1000000; } + +long timespec_microseconds(struct timespec *a) +{ + return a->tv_sec*1000000 + a->tv_nsec/1000; +} -- cgit v1.2.3