diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-01-01 17:14:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-01-01 17:14:00 +0000 |
commit | 2d4bff44c3f4d613eccbd911910e3724718bce1e (patch) | |
tree | 6e97657e7b8f46ca38382cdccf678df6362dfaa5 /Carpet/CarpetLib/src/gdata.hh | |
parent | 63ed4f2a8157f54b8ed4fa8b642d17ff8c90c200 (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.hh | 44 |
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 { |