cctools
|
Portable routines for high resolution timing. More...
#include "int_sizes.h"
#include <time.h>
Go to the source code of this file.
Typedefs | |
typedef UINT64_T | timestamp_t |
A type to hold the current time, in microseconds since January 1st, 1970. More... | |
Functions | |
timestamp_t | timestamp_get (void) |
Get the current time. More... | |
void | timestamp_sleep (timestamp_t interval) |
Sleep for a specified time. More... | |
time_t | timestamp_file (const char *file) |
Get the last modified time of a file. More... | |
Portable routines for high resolution timing.
typedef UINT64_T timestamp_t |
A type to hold the current time, in microseconds since January 1st, 1970.
timestamp_t timestamp_get | ( | void | ) |
Get the current time.
void timestamp_sleep | ( | timestamp_t | interval | ) |
Sleep for a specified time.
interval | The number of microseconds to sleep for. |
time_t timestamp_file | ( | const char * | file | ) |
Get the last modified time of a file.
file | The path of the file to examine. |