1 /********************* */
2 /*! \file clock_gettime.h
4 ** Original author: mdeters
5 ** Major contributors: none
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 prototype.
8 ** Copyright (c) 2009, 2010 The Analysis of Computer Systems Group (ACSys)
9 ** Courant Institute of Mathematical Sciences
10 ** New York University
11 ** See the file COPYING in the top-level source directory for licensing
12 ** information.\endverbatim
14 ** \brief Replacement for clock_gettime() for systems without it (like Mac OS X)
16 ** Replacement for clock_gettime() for systems without it (like Mac OS X).
19 #ifndef __CVC4__LIB__CLOCK_GETTIME_H
20 #define __CVC4__LIB__CLOCK_GETTIME_H
22 #include "lib/replacements.h"
24 #ifdef HAVE_CLOCK_GETTIME
26 /* it should be available from <time.h> */
29 #else /* HAVE_CLOCK_GETTIME */
31 /* otherwise, we have to define it */
33 /* get timespec from <time.h> */
38 #endif /* __cplusplus */
47 long clock_gettime(clockid_t which_clock
, struct timespec
*tp
);
51 #endif /* __cplusplus */
53 #endif /* HAVE_CLOCK_GETTIME */
54 #endif /*__CVC4__LIB__CLOCK_GETTIME_H */