remove superflous class member.
This commit is contained in:
@ -42,7 +42,7 @@ void Timer::print()
|
|||||||
{
|
{
|
||||||
if ( (flag&3) != 3) return;
|
if ( (flag&3) != 3) return;
|
||||||
|
|
||||||
cpu_time_used = ((double) (t2 - t1)) / CLOCKS_PER_SEC;
|
double cpu_time_used = ((double) (t2 - t1)) / CLOCKS_PER_SEC;
|
||||||
printf("Total CPU time used: %g seconds.\n", cpu_time_used);
|
printf("Total CPU time used: %g seconds.\n", cpu_time_used);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -14,8 +14,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
clock_t t1, t2;
|
clock_t t1, t2;
|
||||||
double cpu_time_used;
|
|
||||||
|
|
||||||
int flag;
|
int flag;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user