summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_time.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/util/u_time.h')
-rw-r--r--src/gallium/auxiliary/util/u_time.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_time.h b/src/gallium/auxiliary/util/u_time.h
index a6189a247bb..29fd1cbc67d 100644
--- a/src/gallium/auxiliary/util/u_time.h
+++ b/src/gallium/auxiliary/util/u_time.h
@@ -74,14 +74,23 @@ struct util_time
void
util_time_get(struct util_time *t);
+/**
+ * Return t2 = t1 + usecs
+ */
void
util_time_add(const struct util_time *t1,
int64_t usecs,
struct util_time *t2);
+/**
+ * Return current time in microseconds
+ */
uint64_t
util_time_micros( void );
+/**
+ * Return difference between times, in microseconds
+ */
int64_t
util_time_diff(const struct util_time *t1,
const struct util_time *t2);