summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-27 13:46:43 -0700
committerBrian Paul <[email protected]>2010-01-27 13:46:43 -0700
commit5460da543608805a3debbb401ccc19442e1cb476 (patch)
treee80c9e0a04e46ba13fdf7ded14bbff799cb56d5f
parent99f1e32fadbf16c167350af3304b2d68c464452a (diff)
gallium/util: comments for time-related functions
-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);