00001 #include "util.h" 00002 00003 void wait(int usec) 00004 { 00005 volatile int64_t time_start = g_timestamp; 00006 00007 while(g_timestamp < time_start + usec) 00008 { 00009 //do nothing 00010 } 00011 } 00012