#include <time.h>
#include <sys/time.h>
Go to the source code of this file.
|
double | c_secdiff (struct timespec clock1, struct timespec clock0) |
|
struct timespec | c_tspecdiff (struct timespec time1, struct timespec time0) |
|
int | c_utimes (const char *uri, const struct timeval *times) |
|
◆ c_secdiff()
double c_secdiff |
( |
struct timespec |
clock1, |
|
|
struct timespec |
clock0 |
|
) |
| |
Calculate time difference.
The function returns the time elapsed between time clock1 and time clock0 represented as double (in seconds and milliseconds).
- Parameters
-
clock1 | The time. |
clock0 | The time. |
- Returns
- time elapsed between clock1 and clock0 in seconds and milliseconds.
◆ c_tspecdiff()
struct timespec c_tspecdiff |
( |
struct timespec |
time1, |
|
|
struct timespec |
time0 |
|
) |
| |
Calculate time difference.
The c_tspecdiff function returns the time elapsed between time time1 and time time0 represented as timespec.
- Parameters
-
time1 | The time. |
time0 | The time. |
- Returns
- time elapsed between time1 and time0.
◆ c_utimes()
int c_utimes |
( |
const char * |
uri, |
|
|
const struct timeval * |
times |
|
) |
| |