static double msecond()
{
#ifndef WIN32
struct timeval tv;
gettimeofday(&tv, 0);
return (tv.tv_sec * 1.0e3 + tv.tv_usec * 1.0e-3);
#else
clock_t clk;
clk = clock();
return (clk * 1000.0 / CLOCKS_PER_SEC);
#endif
}
static double msecond()
{
#ifndef WIN32
struct timeval tv;
gettimeofday(&tv, 0);
return (tv.tv_sec * 1.0e3 + tv.tv_usec * 1.0e-3);
#else
clock_t clk;
clk = clock();
return (clk * 1000.0 / CLOCKS_PER_SEC);
#endif
}