/*
Define declarations.
*/
-#if defined(macintosh)
-#define CLK_TCK CLOCKS_PER_SEC
-#endif
-#if !defined(CLK_TCK)
-#define CLK_TCK sysconf(_SC_CLK_TCK)
+#if !defined(CLOCKS_PER_SEC)
+#define CLOCKS_PER_SEC 100
#endif
\f
/*
struct tms
timer;
- return((double) times(&timer)/CLK_TCK);
+ return((double) times(&timer)/CLOCKS_PER_SEC);
#else
#if defined(MAGICKCORE_WINDOWS_SUPPORT)
return(NTElapsedTime());
#else
- return((double) clock()/CLK_TCK);
+ return((double) clock()/CLOCKS_PER_SEC);
#endif
#endif
}
timer;
(void) times(&timer);
- return((double) (timer.tms_utime+timer.tms_stime)/CLK_TCK);
+ return((double) (timer.tms_utime+timer.tms_stime)/CLOCKS_PER_SEC);
#else
#if defined(MAGICKCORE_WINDOWS_SUPPORT)
return(NTUserTime());
#else
- return((double) clock()/CLK_TCK);
+ return((double) clock()/CLOCKS_PER_SEC);
#endif
#endif
}