ltlcheck: Record translation time.

* lib/gethrxtime.h, lib/xtime.h: Add extern "C".
* src/bin/Makefile.am (ltlcheck_LDADD): Use LIB_GETHRXTIME.
* src/bin/ltlcheck.cc: Use gethrxtime() to record translation time.
This commit is contained in:
Alexandre Duret-Lutz 2012-10-08 23:22:42 +02:00
parent 756319739b
commit 82babb9d38
4 changed files with 25 additions and 1 deletions

View file

@ -37,6 +37,10 @@ typedef long int xtime_t;
# endif
# endif
#ifdef __cplusplus
extern "C" {
#endif
/* Return an extended time value that contains S seconds and NS
nanoseconds, without any overflow checking. */
static inline xtime_t
@ -83,4 +87,8 @@ xtime_nsec (xtime_t t)
return ns;
}
#ifdef __cplusplus
}
#endif
#endif