gallium/os: Cleanup up os_time_get/os_time_get_nano.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 5 Dec 2012 08:59:21 +0000 (08:59 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 6 Dec 2012 17:12:31 +0000 (17:12 +0000)
commitd296326e065ed9685bd27d62a3ba20d8a8996e6f
treefd199ddabb848056e1f03df7d275ea272f8a4f1a
parent7e14293556bf8b4248728d2952752c13f70647f3
gallium/os: Cleanup up os_time_get/os_time_get_nano.

- Re-implement os_time_get in terms of os_time_get_nano() for consistency
- Use CLOCK_MONOTONIC as recommended
- Only use clock_gettime on Linux for now.

Reviewed-by: Brian Paul <brianp@vmware.com>
scons/gallium.py
src/gallium/auxiliary/os/os_time.c
src/gallium/auxiliary/os/os_time.h