2
* International Union of Pure and Applied Chemistry (IUPAC)
3
* International Chemical Identifier (InChI)
5
* Software version 1.00
10
#ifndef __ICHITIME_H__
11
#define __ICHITIME_H__
14
#ifdef INCHI_ANSI_ONLY
22
#include <sys/times.h>
25
/*#include <sys/timeb.h>*/
29
typedef struct tagInchiTime {
36
#include <sys/timeb.h>
38
typedef struct tagInchiTime {
39
unsigned long clockTime; /* Time in seconds since midnight (00:00:00), January 1, 1970;
40
signed long overflow expected in 2038 */
41
long millitime; /* milliseconds */
50
#define InchiTimeGet e_InchiTimeGet
51
#define InchiTimeMsecDiff e_InchiTimeMsecDiff
52
#define InchiTimeAddMsec e_InchiTimeAddMsec
53
#define bInchiTimeIsOver e_bInchiTimeIsOver
54
#define InchiTimeElapsed e_InchiTimeElapsed
56
#define FullMaxClock e_FullMaxClock
57
#define HalfMaxClock e_HalfMaxClock
58
#define MaxPositiveClock e_MaxPositiveClock
59
#define MinNegativeClock e_MinNegativeClock
60
#define HalfMaxPositiveClock e_HalfMaxPositiveClock
61
#define HalfMinNegativeClock e_HalfMinNegativeClock
67
void InchiTimeGet( inchiTime *TickEnd );
68
long InchiTimeMsecDiff( inchiTime *TickEnd, inchiTime *TickStart );
69
void InchiTimeAddMsec( inchiTime *TickEnd, unsigned long nNumMsec );
70
int bInchiTimeIsOver( inchiTime *TickEnd );
71
long InchiTimeElapsed( inchiTime *TickStart );
73
#endif /* __ICHITIME_H__ */