summaryrefslogtreecommitdiffstats
path: root/converter/timer.cpp
blob: f9f9aea3eaeed5ec7fc525446bdd9f3c7f766e1e (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "timer.h"

double diffclock(clock_t clock1,clock_t clock2)
{
        double diffticks=clock1-clock2;
        double diffms=(diffticks*10)/CLOCKS_PER_SEC;
        return diffms;
}