~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to include/inchi/ichitime.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Leidert (dale)
  • Date: 2009-07-17 00:18:06 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090717001806-sy3mzs3e1d1adbs9
Tags: 2.2.2-2
* debian/control (Uploaders): Removed LI Daobing. Thanks for your work!
  (Standards-Version): Bumped to 3.8.2.
  (Vcs-Svn): Fixed vcs-field-uses-not-recommended-uri-format.
* debian/patches/537102_fix_tr1_memory_detection.patch: Added.
  - configure.in, configure, src/config.h.in: Fix detection of tr1/memory to
    prevent building the package with boost (closes: #537102).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * International Chemical Identifier (InChI)
3
 
 * Version 1
4
 
 * Software version 1.02-beta
5
 
 * August 23, 2007
6
 
 * Developed at NIST
7
 
 *
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 
12
 
 * Foundation:
13
 
 * http://www.opensource.org/licenses/lgpl-license.php
14
 
 */
15
 
 
16
 
 
17
 
#ifndef __ICHITIME_H__
18
 
#define __ICHITIME_H__
19
 
 
20
 
 
21
 
#ifdef INCHI_ANSI_ONLY
22
 
 
23
 
#ifdef __FreeBSD__
24
 
#include <sys/time.h>
25
 
#endif
26
 
 
27
 
/* get times() */
28
 
#ifdef INCHI_USETIMES
29
 
#include <sys/times.h>
30
 
#endif
31
 
 
32
 
/*#include <sys/timeb.h>*/
33
 
 
34
 
#include <time.h>
35
 
 
36
 
typedef struct tagInchiTime {
37
 
    clock_t clockTime;
38
 
} inchiTime;
39
 
 
40
 
#else
41
 
 
42
 
/* Win32 _ftime(): */
43
 
#include <sys/timeb.h>
44
 
 
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 */
49
 
 
50
 
} inchiTime;
51
 
 
52
 
#endif
53
 
 
54
 
 
55
 
#ifdef INCHI_MAIN
56
 
 
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
62
 
 
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
69
 
 
70
 
 
71
 
 
72
 
#endif
73
 
 
74
 
#ifndef INCHI_ALL_CPP
75
 
#ifdef __cplusplus
76
 
extern "C" {
77
 
#endif
78
 
#endif
79
 
 
80
 
 
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 );
86
 
 
87
 
#ifndef INCHI_ALL_CPP
88
 
#ifdef __cplusplus
89
 
}
90
 
#endif
91
 
#endif
92
 
 
93
 
 
94
 
#endif /* __ICHITIME_H__ */
95