|
From: <v-...@ou...> - 2002-05-13 19:25:55
|
Hi Hongli,
>> ----------------------------8< schnipp------------------------------
>> double MyTime() {
>> struct timeval Tp;
>> gettimeofday (&Tp, NULL);
>> return Tp.tv_sec + (Tp.tv_usec /10000000.);
>> }
>> ----------------------------schnapp >8------------------------------
> I believe you need tin #include <sys/time.h>
As I stated: Under Linux it does compile, and time.h is included, so
this should be no problem. Below a list of all included header files.
#include <iostream>
using std::cout; using std::cin;
#include <cstdlib>
using std::rand; using std::srand;
#include <sys/time.h>
#include <cmath>
using std::fmod;
#include <iomanip>
using std::setprecision;
Chau
V-Li
|