#include <../src/systime.h>
static struct timeval TV1, TV2;
-static struct timezone *tzp = (struct timezone *) NULL; /* no need timezone */
static int watch_not_started = 1; /* flag */
static char time_string[30];
int
reset_watch ()
{
- gettimeofday (&TV1, tzp);
+ EMACS_GET_TIME (TV1);
watch_not_started = 0;
}
{
if (watch_not_started)
exit (1); /* call reset_watch first ! */
- gettimeofday (&TV2, tzp);
+ EMACS_GET_TIME (TV2);
if (TV1.tv_usec > TV2.tv_usec)
{
TV2.tv_usec += 1000000;