mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
gallium/util: comments for time-related functions
This commit is contained in:
parent
99f1e32fad
commit
5460da5436
1 changed files with 9 additions and 0 deletions
|
|
@ -74,14 +74,23 @@ struct util_time
|
||||||
void
|
void
|
||||||
util_time_get(struct util_time *t);
|
util_time_get(struct util_time *t);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return t2 = t1 + usecs
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
util_time_add(const struct util_time *t1,
|
util_time_add(const struct util_time *t1,
|
||||||
int64_t usecs,
|
int64_t usecs,
|
||||||
struct util_time *t2);
|
struct util_time *t2);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return current time in microseconds
|
||||||
|
*/
|
||||||
uint64_t
|
uint64_t
|
||||||
util_time_micros( void );
|
util_time_micros( void );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return difference between times, in microseconds
|
||||||
|
*/
|
||||||
int64_t
|
int64_t
|
||||||
util_time_diff(const struct util_time *t1,
|
util_time_diff(const struct util_time *t1,
|
||||||
const struct util_time *t2);
|
const struct util_time *t2);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue