summaryrefslogtreecommitdiff
path: root/library/statistics.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:01:29 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:01:29 +0200
commit9a2a524f1e311853d08050be2dcdddc09ac7759a (patch)
treed8e4a24169fce88c2d89931d58514889a0bcb0ea /library/statistics.cpp
parent2.3 (diff)
downloadFreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.gz
FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.bz2
FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.zip
3.0
Diffstat (limited to 'library/statistics.cpp')
-rw-r--r--library/statistics.cpp22
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)
bgstack15