aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/timestat.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-09-04 02:06:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-09-04 02:06:00 +0000
commit6d596885a8a98fd050a16e3584d25f128d82cd68 (patch)
tree7ad37974d3535242375656ed3285161c182c5e6b /Carpet/CarpetLib/src/timestat.hh
parent91295d2b515b078b624994b18e7a894f3d21e892 (diff)
CarpetLib: Collect more timing information
Extend the CarpetLib timers so that they also count the number of bytes transmitted in addition to the wall time. darcs-hash:20060904020649-dae7b-7a18c2fbe2de09d662b4154a3ae2e553ad57c12b.gz
Diffstat (limited to 'Carpet/CarpetLib/src/timestat.hh')
-rw-r--r--Carpet/CarpetLib/src/timestat.hh10
1 files changed, 8 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/timestat.hh b/Carpet/CarpetLib/src/timestat.hh
index 896b94236..a93e5717a 100644
--- a/Carpet/CarpetLib/src/timestat.hh
+++ b/Carpet/CarpetLib/src/timestat.hh
@@ -15,13 +15,19 @@ public:
double wtime2;
double wmin;
double wmax;
+
+ double bytes;
+ double bytes2;
+ double bmin;
+ double bmax;
+
double count;
public:
timestat ();
private:
- void addstat (double const t);
+ void addstat (double t, double b);
private:
bool running;
@@ -29,7 +35,7 @@ private:
public:
void start();
- void stop();
+ void stop(double bytes = 0.0);
};
ostream& operator<< (ostream& os, const timestat& wt);