Example #1
0
static int
qopqdp_dtime(lua_State *L)
{
  BEGIN_ARGS;
  END_ARGS;
  lua_pushnumber(L, QMP_time());
  return 1;
}
Example #2
0
/**
 * Get current time in milli seconds.
 */
static double
get_current_time (void)
{
#if 0
  struct timeval tv;
  gettimeofday (&tv, 0);
  return tv.tv_sec*1000.0 + tv.tv_usec/1000.0;
#endif
  return 1000*QMP_time();
}