llvmpipe: use new os time functions
authorBrian Paul <brianp@vmware.com>
Mon, 8 Feb 2010 20:07:31 +0000 (13:07 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 8 Feb 2010 23:57:23 +0000 (16:57 -0700)
src/gallium/drivers/llvmpipe/lp_state_fs.c

index f37c21f3fe23b8ca670957ab30e33fb3fffff77f..320e2b72e43386e6e8113ae2e0125e85b24c1f77 100644 (file)
@@ -66,7 +66,7 @@
 #include "util/u_memory.h"
 #include "util/u_format.h"
 #include "util/u_debug_dump.h"
-#include "util/u_time.h"
+#include "os/os_time.h"
 #include "pipe/p_shader_tokens.h"
 #include "draw/draw_context.h"
 #include "tgsi/tgsi_dump.h"
@@ -1111,14 +1111,14 @@ llvmpipe_update_fs(struct llvmpipe_context *lp)
    }
 
    if (!variant) {
-      struct util_time t0, t1;
+      int64_t t0, t1;
       int64_t dt;
-      util_time_get(&t0);
+      t0 = os_time_get();
 
       variant = generate_variant(lp, shader, &key);
 
-      util_time_get(&t1);
-      dt = util_time_diff(&t0, &t1);
+      t1 = os_time_get();
+      dt = t1 - t0;
       LP_COUNT_ADD(llvm_compile_time, dt);
       LP_COUNT_ADD(nr_llvm_compiles, 2);  /* emit vs. omit in/out test */
    }