Commit f07915f1 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Refactored setters/getters in the Benchmark class

parent e8bfeffb
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -73,11 +73,11 @@ class Benchmark

      void setup( const Config::ParameterContainer& parameters );

      // TODO: ensure that this is not called in the middle of the benchmark
      // (or just remove it completely?)
      void setLoops( int loops );

      void setMinTime( const double& minTime );
      void setMinTime( double minTime );

      bool isResetingOn() const;

      // Sets metadata columns -- values used for all subsequent rows until
      // the next call to this function.
@@ -143,8 +143,6 @@ class Benchmark

      double getBaseTime() const;

      bool isResetingOn() const;

   protected:
      Logger logger;

+9 −9
Original line number Diff line number Diff line
@@ -63,11 +63,19 @@ setLoops( int loops )
template< typename Logger >
void
Benchmark< Logger >::
setMinTime( const double& minTime )
setMinTime( double minTime )
{
   this->minTime = minTime;
}

template< typename Logger >
bool
Benchmark< Logger >::
isResetingOn() const
{
   return reset;
}

template< typename Logger >
void
Benchmark< Logger >::
@@ -222,13 +230,5 @@ getBaseTime() const
   return baseTime;
}

template< typename Logger >
bool
Benchmark< Logger >::
isResetingOn() const
{
   return reset;
}

} // namespace Benchmarks
} // namespace TNL