Re: [Mesa-dev] [PATCH 1/2] gallium/os: Add CPU time functions

2016-02-18 Thread Jonathan Gray
On Fri, Feb 19, 2016 at 12:59:18AM +0100, Bas Nieuwenhuizen wrote: > Adds functions to query the elapsed CPU time of the current process > or thread. Implements Linux support only. > > To be used by the gallium HUD. Wouldn't this be better gated by a configure test? clock_gettime(2) is documente

[Mesa-dev] [PATCH 1/2] gallium/os: Add CPU time functions

2016-02-18 Thread Bas Nieuwenhuizen
Adds functions to query the elapsed CPU time of the current process or thread. Implements Linux support only. To be used by the gallium HUD. Signed-off-by: Bas Nieuwenhuizen --- src/gallium/auxiliary/os/os_time.c | 48 ++ src/gallium/auxiliary/os/os_time.h |