00001 /* 00002 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin 00003 Copyright (C) 2005- The University of Notre Dame 00004 This software is distributed under the GNU General Public License. 00005 See the file COPYING for details. 00006 */ 00007 00008 #ifndef TIMESTAMP_H 00009 #define TIMESTAMP_H 00010 00015 #include "int_sizes.h" 00016 #include <time.h> 00017 00020 typedef UINT64_T timestamp_t; 00021 00022 #define TIMESTAMP_FORMAT UINT64_FORMAT 00023 00028 timestamp_t timestamp_get(void); 00029 00038 int timestamp_fmt(char *buf, size_t size, const char *fmt, timestamp_t ts); 00039 00044 void timestamp_sleep(timestamp_t interval); 00045 00051 time_t timestamp_file(const char *file); 00052 00053 #endif