Commented out the function. It is only used in one place, and
[dyninst.git] / common / h / Time.h
1 #ifndef time_H
2 #define time_H
3
4 #include <sys/time.h>
5 #include "sys.h"
6
7 #ifdef notdef
8 timeStamp getCurrentTime(void) {
9     struct timeval tv;
10     assert(gettimeofday(&tv, NULL) == 0); // 0 --> success; -1 --> error
11
12     double seconds_dbl = tv.tv_sec * 1.0;
13     assert(tv.tv_usec < 1000000);
14     double useconds_dbl = tv.tv_usec * 1.0;
15   
16     seconds_dbl += useconds_dbl / 1000000.0;
17
18     return seconds_dbl;
19 }
20 #endif
21
22 #endif