2
* International Chemical Identifier (InChI)
4
* Software version 1.02-beta
8
* The InChI library and programs are free software developed under the
9
* auspices of the International Union of Pure and Applied Chemistry (IUPAC);
10
* you can redistribute this software and/or modify it under the terms of
11
* the GNU Lesser General Public License as published by the Free Software
13
* http://www.opensource.org/licenses/lgpl-license.php
17
#ifndef __ICHITIME_H__
18
#define __ICHITIME_H__
21
#ifdef INCHI_ANSI_ONLY
29
#include <sys/times.h>
32
/*#include <sys/timeb.h>*/
36
typedef struct tagInchiTime {
43
#include <sys/timeb.h>
45
typedef struct tagInchiTime {
46
unsigned long clockTime; /* Time in seconds since midnight (00:00:00), January 1, 1970;
47
signed long overflow expected in 2038 */
48
long millitime; /* milliseconds */
57
#define InchiTimeGet e_InchiTimeGet
58
#define InchiTimeMsecDiff e_InchiTimeMsecDiff
59
#define InchiTimeAddMsec e_InchiTimeAddMsec
60
#define bInchiTimeIsOver e_bInchiTimeIsOver
61
#define InchiTimeElapsed e_InchiTimeElapsed
63
#define FullMaxClock e_FullMaxClock
64
#define HalfMaxClock e_HalfMaxClock
65
#define MaxPositiveClock e_MaxPositiveClock
66
#define MinNegativeClock e_MinNegativeClock
67
#define HalfMaxPositiveClock e_HalfMaxPositiveClock
68
#define HalfMinNegativeClock e_HalfMinNegativeClock
81
void InchiTimeGet( inchiTime *TickEnd );
82
long InchiTimeMsecDiff( inchiTime *TickEnd, inchiTime *TickStart );
83
void InchiTimeAddMsec( inchiTime *TickEnd, unsigned long nNumMsec );
84
int bInchiTimeIsOver( inchiTime *TickEnd );
85
long InchiTimeElapsed( inchiTime *TickStart );
94
#endif /* __ICHITIME_H__ */