Skip to content

Commit

Permalink
Removing apex assertions from profiler.hpp
Browse files Browse the repository at this point in the history
apex_assert.h doesn't get installed when building with HPX, so
don't include it in profiler.hpp.
  • Loading branch information
khuck committed Aug 3, 2020
1 parent 2cbac43 commit 15c5f1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/apex/profiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class profiler;
#include <math.h>
#include "apex_options.hpp"
#include "apex_types.h"
#include "apex_assert.h"
// #include "apex_assert.h"
#include <chrono>
#include <memory>
#include "task_wrapper.hpp"
Expand Down Expand Up @@ -189,24 +189,24 @@ class profiler {
start = MYCLOCK::now();
};
uint64_t get_start_ns() {
APEX_ASSERT(!is_counter);
// APEX_ASSERT(!is_counter);
using namespace std::chrono;
uint64_t stamp = duration_cast<nanoseconds>(start.time_since_epoch()).count();
return stamp;
}
double get_start_us() {
APEX_ASSERT(!is_counter);
// APEX_ASSERT(!is_counter);
double stamp = (double)get_start_ns();
return stamp*10e-4;
}
uint64_t get_stop_ns() {
APEX_ASSERT(!is_counter);
// APEX_ASSERT(!is_counter);
using namespace std::chrono;
uint64_t stamp = duration_cast<nanoseconds>(end.time_since_epoch()).count();
return stamp;
}
double get_stop_us() {
APEX_ASSERT(!is_counter);
// APEX_ASSERT(!is_counter);
using namespace std::chrono;
double stamp = (double)get_stop_ns();
return stamp*10e-4;
Expand Down

0 comments on commit 15c5f1b

Please sign in to comment.