aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-01-01 17:14:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-01-01 17:14:00 +0000
commit049cec8e042a508511fdb0f0948de63f84f9b8be (patch)
tree6e97657e7b8f46ca38382cdccf678df6362dfaa5 /Carpet/CarpetLib/src/gdata.hh
parent6561ae56dd8805af9a45b9d5af972e71ac29bd4d (diff)
CarpetLib: Move class timestat into its own file
darcs-hash:20050101171429-891bb-130630de8631b8f9bbe494e135662ffb089ecca0.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.hh')
-rw-r--r--Carpet/CarpetLib/src/gdata.hh44
1 files changed, 1 insertions, 43 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh
index 9d544f9bb..9d08a5b63 100644
--- a/Carpet/CarpetLib/src/gdata.hh
+++ b/Carpet/CarpetLib/src/gdata.hh
@@ -14,6 +14,7 @@
#include "dist.hh"
#include "bbox.hh"
#include "operators.hh"
+#include "timestat.hh"
#include "vect.hh"
using namespace std;
@@ -48,49 +49,6 @@ public:
-// Time (in seconds) spend during various operations
-struct timestat {
- double wtime;
- double wtime2;
- double count;
- timestat ();
-private:
- bool running;
- double starttime;
-public:
- void start();
- void stop();
-private:
- void addstat (double const t);
-};
-
-ostream& operator<< (ostream& os, const timestat& wt);
-
-extern timestat wtime_copyfrom_recv;
-extern timestat wtime_copyfrom_send;
-extern timestat wtime_copyfrom_wait;
-
-extern timestat wtime_copyfrom_recv_maketyped;
-extern timestat wtime_copyfrom_recv_allocate;
-extern timestat wtime_copyfrom_recv_changeproc_recv;
-extern timestat wtime_copyfrom_send_copyfrom_nocomm1;
-extern timestat wtime_copyfrom_send_copyfrom_nocomm2;
-extern timestat wtime_copyfrom_send_changeproc_send;
-extern timestat wtime_copyfrom_wait_changeproc_wait;
-extern timestat wtime_copyfrom_wait_copyfrom_nocomm;
-extern timestat wtime_copyfrom_wait_delete;
-
-extern timestat wtime_changeproc_recv;
-extern timestat wtime_changeproc_send;
-extern timestat wtime_changeproc_wait;
-
-extern timestat wtime_irecv;
-extern timestat wtime_isend;
-extern timestat wtime_irecvwait;
-extern timestat wtime_isendwait;
-
-
-
// A generic data storage without type information
template<int D>
class gdata {