main
test-branch
| Line | |
|---|
| 1 | #ifndef CCLOCK_H
|
|---|
| 2 | #define CCLOCK_H
|
|---|
| 3 | #include "time.h"
|
|---|
| 4 |
|
|---|
| 5 | /*
|
|---|
| 6 | A small helper function to manipulate accurate times (on LINUX).
|
|---|
| 7 |
|
|---|
| 8 | Do not forget to add -lrt at link time
|
|---|
| 9 | (C) G. Colin de Verdiere, CEA.
|
|---|
| 10 |
|
|---|
| 11 | */
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | #ifdef __cplusplus
|
|---|
| 15 | extern "C" {
|
|---|
| 16 | #endif
|
|---|
| 17 | struct timespec cclock(void); // for high precision operations on time
|
|---|
| 18 | double dcclock(void); // might loose some precision
|
|---|
| 19 |
|
|---|
| 20 | double ccelaps(struct timespec start, struct timespec end);
|
|---|
| 21 | #ifdef __cplusplus
|
|---|
| 22 | };
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | #endif // CCLOCK_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.