projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99f1e32
)
gallium/util: comments for time-related functions
author
Brian Paul
<brianp@vmware.com>
Wed, 27 Jan 2010 20:46:43 +0000
(13:46 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 27 Jan 2010 20:46:43 +0000
(13:46 -0700)
src/gallium/auxiliary/util/u_time.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_time.h
b/src/gallium/auxiliary/util/u_time.h
index a6189a247bbdea8d3197898e937d1d25e3eb896a..29fd1cbc67d5a69d19e43ad179ac110b8cbad35c 100644
(file)
--- 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);