940d36d8a1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@28 0a769ca7-a7f5-676a-18bf-c427514a06d6
10 lines
189 B
C++
10 lines
189 B
C++
#include "timer.h"
|
|
|
|
double diffclock(clock_t clock1,clock_t clock2)
|
|
{
|
|
double diffticks=clock1-clock2;
|
|
double diffms=(diffticks*10)/CLOCKS_PER_SEC;
|
|
return diffms;
|
|
}
|
|
|