build: fix out-of-tree builds in gallium/auxiliary
[mesa.git] / src / gallium / auxiliary / os / os_time.h
index 54101a1f546619ec41fa8db3d04b785b613196c9..4fab03cc6712134712094d9a1e758a818a9490a7 100644 (file)
@@ -51,17 +51,19 @@ extern "C" {
 
 
 /*
- * Get the current time in microseconds from an unknown base.
+ * Get the current time in nanoseconds from an unknown base.
  */
 int64_t
-os_time_get(void);
+os_time_get_nano(void);
 
 
 /*
- * Get the current time in nanoseconds from an unknown base.
+ * Get the current time in microseconds from an unknown base.
  */
-uint64_t
-os_time_get_nano(void);
+static INLINE int64_t
+os_time_get(void) {
+    return os_time_get_nano() / 1000;
+}
 
 
 /*