MagickCore 7.0.10
timer.h
Go to the documentation of this file.
1/*
2 Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
8 https://imagemagick.org/script/license.php
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Wizard's Toolkit timer methods.
17*/
18#ifndef _WIZARDSTOOLKIT_TIMER_H
19#define _WIZARDSTOOLKIT_TIMER_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
25#define WizardEpsilon 1.0e-15
26
27typedef enum
28{
33
34typedef struct _Timer
35{
36 double
41
42typedef struct _TimerInfo
44
45extern WizardExport double
48
52
55
56extern WizardExport void
60
61#if defined(__cplusplus) || defined(c_plusplus)
62}
63#endif
64
65#endif
#define WizardExport
Definition timer.h:35
double stop
Definition timer.h:38
double total
Definition timer.h:39
double start
Definition timer.h:37
WizardExport void ResetTimer(TimerInfo *)
WizardExport TimerInfo * DestroyTimerInfo(TimerInfo *)
Definition timer.c:176
WizardExport void GetTimerInfo(TimerInfo *)
WizardExport double GetElapsedTime(TimerInfo *)
WizardExport WizardBooleanType ContinueTimer(TimerInfo *)
Definition timer.c:138
WizardExport TimerInfo * AcquireTimerInfo(void)
struct _Timer Timer
WizardExport void StartTimer(TimerInfo *, const WizardBooleanType)
Definition timer.c:380
TimerState
Definition timer.h:28
@ RunningTimerState
Definition timer.h:31
@ StoppedTimerState
Definition timer.h:30
@ UndefinedTimerState
Definition timer.h:29
WizardExport double GetUserTime(TimerInfo *)
Definition timer.c:312
WizardBooleanType
Definition wizard-type.h:26