MagickCore  7.0.3
timer.c File Reference
Include dependency graph for timer.c:

Go to the source code of this file.

Macros

#define CLOCKS_PER_SEC   100
 

Functions

static double UserTime (void)
 
static void StopTimer (TimerInfo *)
 
MagickExport TimerInfoAcquireTimerInfo (void)
 
MagickExport MagickBooleanType ContinueTimer (TimerInfo *time_info)
 
MagickExport TimerInfoDestroyTimerInfo (TimerInfo *timer_info)
 
static double ElapsedTime (void)
 
MagickExport ssize_t FormatMagickTime (const time_t time, const size_t length, char *timestamp)
 
MagickExport double GetElapsedTime (TimerInfo *time_info)
 
MagickExport time_t GetMagickTime (void)
 
MagickExport void GetTimerInfo (TimerInfo *time_info)
 
MagickExport double GetUserTime (TimerInfo *time_info)
 
MagickExport void ResetTimer (TimerInfo *time_info)
 
MagickExport void StartTimer (TimerInfo *time_info, const MagickBooleanType reset)
 

Macro Definition Documentation

#define CLOCKS_PER_SEC   100

Definition at line 59 of file timer.c.

Referenced by ElapsedTime(), MagickDelay(), and UserTime().

Function Documentation

MagickExport TimerInfo* AcquireTimerInfo ( void  )
MagickExport TimerInfo* DestroyTimerInfo ( TimerInfo timer_info)

Definition at line 163 of file timer.c.

References MagickCoreSignature, RelinquishMagickMemory(), and _TimerInfo::signature.

static double ElapsedTime ( void  )
static

Definition at line 191 of file timer.c.

References CLOCKS_PER_SEC.

Referenced by StartTimer(), and StopTimer().

MagickExport ssize_t FormatMagickTime ( const time_t  time,
const size_t  length,
char *  timestamp 
)

Definition at line 255 of file timer.c.

References FormatLocaleString(), and GetMagickUTCtime().

Referenced by ReadImage(), and TranslateEvent().

MagickExport time_t GetMagickTime ( void  )
MagickExport void ResetTimer ( TimerInfo time_info)
static double UserTime ( void  )
static

Definition at line 546 of file timer.c.

References CLOCKS_PER_SEC.

Referenced by StartTimer(), and StopTimer().