#include "spice.h"
#include "misc.h"
Go to the source code of this file.
Definition at line 37 of file time.c.
41 #if defined(HAVE_GETTIMEOFDAY) || defined(HAVE_TIMES) 46 #ifdef HAVE_GETTIMEOFDAY 50 (void) gettimeofday(&tv, &tz);
51 tp = localtime(&tv.tv_sec);
57 tp = localtime(&tloc);
Definition at line 103 of file time.c.
107 unsigned long tics = (
unsigned long)dos_tics();
108 return ((
double) tics*0.054945);
110 #ifdef HAVE_GETTIMEOFDAY 114 (void) gettimeofday(&tv, &tz);
116 (tv.tv_sec + (
double) tv.tv_usec / 1000000.0);
119 struct timeb timenow;
123 timediff(&timenow, &timebegin, &sec, &msec);
124 return (sec + (
double) msec / 1000.0);
127 return ((
double)clock()/(
double)CLK_TCK);