10 Apr
2004
10 Apr
'04
2:52 p.m.
fred wrote:
display/nr-arena-item.cpp:383: error: `gettimeofday' undeclared (first use this function)
damn... i checked on a mandrake and it compiled fine; what system are you using? gettimeofday is standard or am i missing something?
Fred,
Glib has a portable time function. Here is an example from libnr/testnr.cpp:
static double get_time (void) { GTimeVal tv; g_get_current_time (&tv); return tv.tv_sec + 1e-6 * tv.tv_usec; }
Bob