#ifndef _MAGICKCORE_TIMER_H
#define _MAGICKCORE_TIMER_H
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
typedef enum
{
UndefinedTimerState,
StoppedTimerState,
RunningTimerState
} TimerState;
typedef struct _Timer
{
double
start,
stop,
total;
} Timer;
typedef struct _TimerInfo
{
Timer
user,
elapsed;
TimerState
state;
size_t
signature;
} TimerInfo;
extern MagickExport double
GetElapsedTime(TimerInfo *),
GetUserTime(TimerInfo *);
extern MagickExport MagickBooleanType
ContinueTimer(TimerInfo *);
extern MagickExport TimerInfo
*AcquireTimerInfo(void),
*DestroyTimerInfo(TimerInfo *);
extern MagickExport void
GetTimerInfo(TimerInfo *),
ResetTimer(TimerInfo *),
StartTimer(TimerInfo *,const MagickBooleanType);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#endif