diff --git a/src/user_filter.cpp b/src/user_filter.cpp index de4d211..efae9bd 100644 --- a/src/user_filter.cpp +++ b/src/user_filter.cpp @@ -3,47 +3,6 @@ template UserFilter::UserFilter(Bank &b) : bank(b) {} -#define time_func_a(f, a, x) \ - { \ - using namespace std::chrono; \ - uint32_t timer = 0; \ - for (int i = 0; i < x; ++i) \ - { \ - auto t1 = high_resolution_clock::now().time_since_epoch(); \ - f; \ - auto t2 = high_resolution_clock::now().time_since_epoch(); \ - a; \ - timer += std::chrono::duration_cast((t2 - t1)).count(); \ - } \ - std::cout << timer / x << '\n'; \ - } - -#define time_func(f, x) \ - { \ - using namespace std::chrono; \ - uint32_t timer = 0; \ - for (int i = 0; i < x; ++i) \ - { \ - auto t1 = high_resolution_clock::now().time_since_epoch(); \ - f; \ - auto t2 = high_resolution_clock::now().time_since_epoch(); \ - timer += std::chrono::duration_cast((t2 - t1)).count(); \ - } \ - std::cout << timer / x << '\n'; \ - } - -#define Op_a(v, name, x, a) \ - { \ - std::cout << name; \ - time_func_a(v, a, x); \ - } - -#define Op(v, name, x) \ - { \ - std::cout << name; \ - time_func(v, x); \ - } - template void UserFilter::doFilter(const HttpRequestPtr &req, FilterCallback &&fcb, @@ -100,4 +59,4 @@ void UserFilter::doFilter(const HttpRequestPtr &re template class UserFilter; //user default template class UserFilter; //user sparse -template class UserFilter; //admin \ No newline at end of file +template class UserFilter; //admin