2
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3
Copyright (C) 2005- The University of Notre Dame
4
This software is distributed under the GNU General Public License.
5
See the file COPYING for details.
12
#include <sys/select.h>
15
time_t timestamp_file( const char *filename )
18
if(stat(filename,&buf)==0) {
25
timestamp_t timestamp_get()
27
struct timeval current;
30
gettimeofday(¤t,0);
31
stamp = ((timestamp_t)current.tv_sec)*1000000 + current.tv_usec;
36
void timestamp_sleep( timestamp_t interval )
40
t.tv_sec = interval / 1000000;
41
t.tv_usec = interval % 1000000;