Skip to content

Commit

Permalink
Make some functions inline so they can actually be used...
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-g committed Oct 19, 2015
1 parent c78042b commit 0ee0d9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/dfesnippets/Timing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
namespace dfesnippets {
namespace timing {

double clock_diff(
inline double clock_diff(
std::chrono::high_resolution_clock::time_point start) {
using namespace std::chrono;
auto end = std::chrono::high_resolution_clock::now();
return duration_cast<duration<double> >(end - start).count();
}

/** Print the difference between now and start */
void print_clock_diff(
inline void print_clock_diff(
std::string item,
std::chrono::high_resolution_clock::time_point start) {
using namespace std::chrono;
Expand All @@ -27,7 +27,7 @@ namespace dfesnippets {
}

/** Print the difference between end and start */
void print_clock_diff(std::string item,
inline void print_clock_diff(std::string item,
std::chrono::high_resolution_clock::time_point end,
std::chrono::high_resolution_clock::time_point start) {
using namespace std::chrono;
Expand All @@ -36,7 +36,7 @@ namespace dfesnippets {
std::cout << " seconds." << std::endl;
}

void print_spmv_gflops(std::string item,
inline void print_spmv_gflops(std::string item,
int nnzs,
std::chrono::high_resolution_clock::time_point end,
std::chrono::high_resolution_clock::time_point start) {
Expand Down

0 comments on commit 0ee0d9c

Please sign in to comment.