projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: fix out-of-tree builds in gallium/auxiliary
[mesa.git]
/
src
/
gallium
/
auxiliary
/
os
/
os_time.h
diff --git
a/src/gallium/auxiliary/os/os_time.h
b/src/gallium/auxiliary/os/os_time.h
index 5b55c1b3747d5713d5a5ba2c655be3bb36cdc6fd..4fab03cc6712134712094d9a1e758a818a9490a7 100644
(file)
--- a/
src/gallium/auxiliary/os/os_time.h
+++ b/
src/gallium/auxiliary/os/os_time.h
@@
-51,10
+51,19
@@
extern "C" {
/*
/*
- * Get the current time in
micr
oseconds from an unknown base.
+ * Get the current time in
nan
oseconds from an unknown base.
*/
int64_t
*/
int64_t
-os_time_get(void);
+os_time_get_nano(void);
+
+
+/*
+ * Get the current time in microseconds from an unknown base.
+ */
+static INLINE int64_t
+os_time_get(void) {
+ return os_time_get_nano() / 1000;
+}
/*
/*
@@
-71,7
+80,7
@@
os_time_sleep(int64_t usecs);
/*
* Helper function for detecting time outs, taking in account overflow.
*
/*
* Helper function for detecting time outs, taking in account overflow.
*
- * Returns true
the
the current time has elapsed beyond the specified interval.
+ * Returns true
if
the current time has elapsed beyond the specified interval.
*/
static INLINE boolean
os_time_timeout(int64_t start,
*/
static INLINE boolean
os_time_timeout(int64_t start,