~ubuntu-branches/ubuntu/feisty/openbabel/feisty

« back to all changes in this revision

Viewing changes to src/formats/inchi/ichitime.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2006-05-14 19:46:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060514194601-h3j1wovvc42cigxl
Tags: 2.0.1-1
* New upstream release. (Closes: #341628)
* debian/patches/04_zipstream_fix.diff: Removed, applied upstream.
* debian/rules (DEB_MAKE_CHECK_TARGET): Readded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * International Union of Pure and Applied Chemistry (IUPAC)
 
3
 * International Chemical Identifier (InChI)
 
4
 * Version 1
 
5
 * Software version 1.00
 
6
 * April 13, 2005
 
7
 * Developed at NIST
 
8
 */
 
9
 
 
10
#ifndef __ICHITIME_H__
 
11
#define __ICHITIME_H__
 
12
 
 
13
 
 
14
#ifdef INCHI_ANSI_ONLY
 
15
 
 
16
#ifdef __FreeBSD__
 
17
#include <sys/time.h>
 
18
#endif
 
19
 
 
20
/* get times() */
 
21
#ifdef INCHI_USETIMES
 
22
#include <sys/times.h>
 
23
#endif
 
24
 
 
25
/*#include <sys/timeb.h>*/
 
26
 
 
27
#include <time.h>
 
28
 
 
29
typedef struct tagInchiTime {
 
30
    clock_t clockTime;
 
31
} inchiTime;
 
32
 
 
33
#else
 
34
 
 
35
/* Win32 _ftime(): */
 
36
#include <sys/timeb.h>
 
37
 
 
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 */
 
42
 
 
43
} inchiTime;
 
44
 
 
45
#endif
 
46
 
 
47
 
 
48
#ifdef INCHI_MAIN
 
49
 
 
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
 
55
 
 
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
 
62
 
 
63
 
 
64
 
 
65
#endif
 
66
 
 
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 );
 
72
 
 
73
#endif /* __ICHITIME_H__ */
 
74