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
Portable routines for high resolution timing.
15
#include "int_sizes.h"
18
/** A type to hold the current time, in microseconds since January 1st, 1970. */
19
typedef UINT64_T timestamp_t;
21
#define TIMESTAMP_FORMAT UINT64_FORMAT
23
/** Get the current time.
24
@return The current time, in microseconds since January 1st, 1970.
27
timestamp_t timestamp_get(void);
29
/** Sleep for a specified time.
30
@param interval The number of microseconds to sleep for.
33
void timestamp_sleep( timestamp_t interval );
35
/** Get the last modified time of a file.
36
@param file The path of the file to examine.
37
@return The modification time, in seconds since January 1st, 1970.
40
time_t timestamp_file( const char *file );