10 #include <boost/filesystem.hpp>
12 using namespace boost::filesystem;
15 start_time = boost::chrono::system_clock::now();
17 path current = current_path();
18 if ( current.stem() == path(
"test") ) {
19 current /= path(
"data");
21 current /=
"test//data";
24 #if defined(BOOST_WINDOWS)
25 hikyuu_init(current.string() +
"/hikyuu_win.ini");
27 hikyuu_init(current.string() +
"/hikyuu_linux.ini");
32 boost::chrono::duration<double> sec = boost::chrono::system_clock::now() - start_time;
33 std::cout <<
"All test spend time: " << sec.count() <<
"s" << std::endl;