-#ifdef PTIMER_TIME
-/* Elapsed time measurement using the time(2) call: system time is
- held in time_t, retrieved using time, and resolution is 1 second.
-
- This method is a catch-all for non-Windows systems without
- gettimeofday -- e.g. DOS or really old or non-standard Unix
- systems. */
-
-typedef time_t ptimer_system_time;
-
-#define IMPL_measure time_measure
-#define IMPL_diff time_diff
-#define IMPL_resolution time_resolution
-
-static inline void
-time_measure (ptimer_system_time *pst)
-{
- time (pst);
-}
-
-static inline double
-time_diff (ptimer_system_time *pst1, ptimer_system_time *pst2)
-{
- return 1000.0 * (*pst1 - *pst2);
-}
-
-static inline double
-time_resolution (void)
-{
- return 1;
-}
-#endif /* PTIMER_TIME */
-