W
wavelet
Hi,
I am searching one time function under windows2000
with Visual C++ environment. Is there function available
like gethrtime() in unix? Thx.
#include <sys/time.h>
main()
{
hrtime_t start, end;
int i, iters = 100;
start = gethrtime();
for (i = 0; i < iters; i++)
getpid();
end = gethrtime();
printf("Avg getpid() time = %lld nsec\n", (end - start) / iters);
}
RGS,
Wavelet
I am searching one time function under windows2000
with Visual C++ environment. Is there function available
like gethrtime() in unix? Thx.
#include <sys/time.h>
main()
{
hrtime_t start, end;
int i, iters = 100;
start = gethrtime();
for (i = 0; i < iters; i++)
getpid();
end = gethrtime();
printf("Avg getpid() time = %lld nsec\n", (end - start) / iters);
}
RGS,
Wavelet