2
measures picture/second
3
Copyright (C) 2000 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
14
#include "performance.h"
17
Performance::Performance() {
19
startTime=new TimeStamp();
20
endTime=new TimeStamp();
25
Performance::~Performance() {
31
void Performance::incPictureCount() {
33
startTime->gettimeofday();
37
endTime->gettimeofday();
39
endTime->minus(startTime,&diffTime);
40
double secs=(double)diffTime.getAsSeconds();
42
double picSec=(double)picCnt/secs;
43
cout << "picPerSec:"<<picSec<<" secs:"<<secs<<endl;