restructure cmake project

This commit is contained in:
2019-12-27 16:59:06 -05:00
parent 08aa3f5453
commit c489d530a9
7 changed files with 7 additions and 2 deletions

2
example/CMakeLists.txt Normal file
View File

@@ -0,0 +1,2 @@
add_executable(bench bench.cpp)
target_link_libraries(bench PRIVATE tc)

20
example/bench.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include "solver.h"
#include "groups.h"
#include <chrono>
#include <iostream>
int main() {
tc::Group g = tc::group::T(2, 5000);
auto s = std::chrono::system_clock::now();
auto cosets = solve(g);
auto e = std::chrono::system_clock::now();
std::chrono::duration<double> diff = e - s;
int order = cosets.len;
std::cout << order << std::endl;
std::cout << diff.count() << std::endl;
return 0;
}