main
test-branch
|
Last change
on this file since 1aaefd4 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
497 bytes
|
| Rev | Line | |
|---|
| [70c4392] | 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.