diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:01:29 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:01:29 +0200 |
commit | 9a2a524f1e311853d08050be2dcdddc09ac7759a (patch) | |
tree | d8e4a24169fce88c2d89931d58514889a0bcb0ea /library/statistics.cpp | |
parent | 2.3 (diff) | |
download | FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.gz FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.bz2 FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.zip |
3.0
Diffstat (limited to 'library/statistics.cpp')
-rw-r--r-- | library/statistics.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/library/statistics.cpp b/library/statistics.cpp index 08bb5dee..fb7f5ba4 100644 --- a/library/statistics.cpp +++ b/library/statistics.cpp @@ -3,18 +3,20 @@ #include <wx/ffile.h> #include "../shared/globalFunctions.h" #include "statusHandler.h" -#include "../algorithm.h" +//#include "../algorithm.h" +#include "../ui/util.h" #include <wx/intl.h> #include <limits> #include <wx/stopwatch.h> RetrieveStatistics::RetrieveStatistics() : - timer(new wxStopWatch) {} + timer(new wxStopWatch) {} RetrieveStatistics::~RetrieveStatistics() -{ //write statistics to a file +{ + //write statistics to a file wxFFile outputFile(wxT("statistics.dat"), wxT("w")); outputFile.Write(wxT("Time(ms);Objects;Data\n")); @@ -103,13 +105,13 @@ Statistics::Statistics(const int totalObjectCount, const double totalDataAmount, const unsigned windowSizeRemainingTime, const unsigned windowSizeBytesPerSecond) : - objectsTotal(totalObjectCount), - dataTotal(totalDataAmount), - windowSizeRemTime(windowSizeRemainingTime), - windowSizeBPS(windowSizeBytesPerSecond), - windowMax(std::max(windowSizeRemainingTime, windowSizeBytesPerSecond)), - remainingTimeLast(256*256*256*100), //something "big" - timer(new wxStopWatch) {} + objectsTotal(totalObjectCount), + dataTotal(totalDataAmount), + windowSizeRemTime(windowSizeRemainingTime), + windowSizeBPS(windowSizeBytesPerSecond), + windowMax(std::max(windowSizeRemainingTime, windowSizeBytesPerSecond)), + remainingTimeLast(256*256*256*100), //something "big" + timer(new wxStopWatch) {} void Statistics::addMeasurement(const int objectsCurrent, const double dataCurrent) |