remove gettimeofday stuff
This commit is contained in:
parent
9c6b9a1450
commit
7deda52af6
2 changed files with 4 additions and 2 deletions
|
@ -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]
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue