18 #ifndef MAGICKCORE_TIMER_PRIVATE_H
19 #define MAGICKCORE_TIMER_PRIVATE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
27 #if defined(MAGICKCORE_HAVE_GMTIME_R)
28 (void) gmtime_r(timep,result);
34 my_time=gmtime(timep);
35 if (my_time != (
struct tm *) NULL)
36 (void) memcpy(result,my_time,
sizeof(*my_time));
43 #if defined(MAGICKCORE_HAVE_GMTIME_R)
44 (void) localtime_r(timep,result);
50 my_time=localtime(timep);
51 if (my_time != (
struct tm *) NULL)
52 (void) memcpy(result,my_time,
sizeof(*my_time));
60 #if defined(__cplusplus) || defined(c_plusplus)
MagickExport time_t GetMagickTime(void)
Definition: timer.c:327
static void GetMagickUTCtime(const time_t *timep, struct tm *result)
Definition: timer-private.h:25
static void GetMagickLocaltime(const time_t *timep, struct tm *result)
Definition: timer-private.h:41
#define MagickExport
Definition: method-attribute.h:80