how about "settimeofday" and "gettimeofday"?
Can I use these functions in my c++ program?