mcserver/converter/source/cTimer.cpp

10 lines
197 B
C++
Raw Normal View History

#include "cTimer.h"
double cTimer::diffclock(clock_t clock1,clock_t clock2)
{
double diffticks=clock1-clock2;
double diffms=(diffticks*1)/CLOCKS_PER_SEC;
return diffms;
}