48 #ifdef EPETRA_HAVE_OMP
61 : StartTime_(Time.StartTime_),
75 MPI_Initialized(&mpiInitialized);
77 if( mpiInitialized ) {
87 return( (
double)( start ) / CLOCKS_PER_SEC );
93 #ifdef EPETRA_HAVE_OMP
94 return(omp_get_wtime());
96 #if ICL || defined(_WIN32)
102 return (
double)( start ) / CLOCKS_PER_SEC;
108 static long start=0, startu;
111 gettimeofday(&tp, NULL);
116 gettimeofday(&tp, NULL);
117 return( ((
double) (tp.tv_sec - start)) + (tp.tv_usec-startu)/1000000.0 );
119 return( (
double) clock() / CLOCKS_PER_SEC );
122 #endif // ICL || WIN32
124 #endif // EPETRA_HAVE_OMP
double ElapsedTime(void) const
Epetra_Time elapsed time function.
Epetra_Time: The Epetra Timing Class.
double WallTime(void) const
Epetra_Time wall-clock time function.
Epetra_Comm: The Epetra Communication Abstract Base Class.
Epetra_Time(const Epetra_Comm &Comm)
Epetra_Time Constructor.
virtual ~Epetra_Time(void)
Epetra_Time Destructor.
void ResetStartTime(void)
Epetra_Time function to reset the start time for a timer object.