remove gettimeofday stuff

This commit is contained in:
pommicket 2022-02-19 12:21:07 -05:00
parent 9c6b9a1450
commit 7deda52af6
2 changed files with 4 additions and 2 deletions

View file

@ -34,4 +34,4 @@ install-tcc0: $(TCCDIR)/lib/libtcc1.a $(TCCDIR)/include/*.h
$(TCC1): $(TCC0) $(TCCINST)/libtcc1.a $(TCC1): $(TCC0) $(TCCINST)/libtcc1.a
cd $(TCCDIR) && ./tcc0 tcc.c -o tcc1 cd $(TCCDIR) && ./tcc0 tcc.c -o tcc1
clean: clean:
rm -f out* README.html *.out *.o $(TCC0) $(TCC1) $(TCCDIR)/lib/*.[oa] rm -f out* README.html *.out *.o $(TCCDIR)/tcc[0123456] $(TCCDIR)/tcc[0123456]a $(TCCDIR)/lib/*.[oa]

View file

@ -236,10 +236,12 @@ static unsigned getclock_ms(void)
{ {
#ifdef _WIN32 #ifdef _WIN32
return GetTickCount(); return GetTickCount();
#else #elif 0
struct timeval tv; struct timeval tv;
gettimeofday(&tv, NULL); gettimeofday(&tv, NULL);
return tv.tv_sec*1000 + (tv.tv_usec+500)/1000; return tv.tv_sec*1000 + (tv.tv_usec+500)/1000;
#else
return 0;
#endif #endif
} }