aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/timestat.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/timestat.hh
parent6561ae56dd8805af9a45b9d5af972e71ac29bd4d (diff)
CarpetLib: Move class timestat into its own file
darcs-hash:20050101171429-891bb-130630de8631b8f9bbe494e135662ffb089ecca0.gz
Diffstat (limited to 'Carpet/CarpetLib/src/timestat.hh')
-rw-r--r--Carpet/CarpetLib/src/timestat.hh58
1 files changed, 58 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/timestat.hh b/Carpet/CarpetLib/src/timestat.hh
new file mode 100644
index 000000000..95cc53e00
--- /dev/null
+++ b/Carpet/CarpetLib/src/timestat.hh
@@ -0,0 +1,58 @@
+#ifndef TIMESTAT_HH
+#define TIMESTAT_HH
+
+
+
+// Time (in seconds) spend during various operations
+class timestat {
+
+public:
+ double wtime;
+ double wtime2;
+ double count;
+
+public:
+ timestat ();
+
+private:
+ void addstat (double const t);
+
+private:
+ bool running;
+ double starttime;
+
+public:
+ void start();
+ void stop();
+};
+
+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;
+
+
+
+#endif TIMESTAT_HH