Skip to content

Commit

Permalink
Disable some test code for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lightvector committed May 10, 2020
1 parent 2db0601 commit 7a376f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpp/command/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,13 @@ int MainCmds::demoplay(int argc, const char* const* argv) {
int MainCmds::printclockinfo(int argc, const char* const* argv) {
(void)argc;
(void)argv;
#ifdef OS_IS_WINDOWS
cout << "Does nothing on windows, disabled" << endl;
#endif
#ifdef OS_IS_UNIX_OR_APPLE
cout << "Tick unit in seconds: " << std::chrono::steady_clock::period::num << " / " << std::chrono::steady_clock::period::den << endl;
cout << "Ticks since epoch: " << std::chrono::steady_clock::now().time_since_epoch().count() << endl;
#endif
return 0;
}

Expand Down

0 comments on commit 7a376f8

Please sign in to comment.