cctools
timestamp.h
Go to the documentation of this file.
1 /*
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.
6 */
7 
8 #ifndef TIMESTAMP_H
9 #define TIMESTAMP_H
10 
15 #include "int_sizes.h"
16 #include <time.h>
17 
19 typedef UINT64_T timestamp_t;
20 
21 #define TIMESTAMP_FORMAT UINT64_FORMAT
22 
28 
37 int timestamp_fmt(char *buf, size_t size, const char *fmt, timestamp_t ts);
38 
43 void timestamp_sleep(timestamp_t interval);
44 
50 time_t timestamp_file(const char *file);
51 
52 #endif