-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from czoido/fix_cmake_conan_example
Fix example
- Loading branch information
Showing
4 changed files
with
328 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,6 @@ | ||
#include "hello.h" | ||
#include "fmt/color.h" | ||
|
||
int main(){ | ||
hello(); | ||
int main() { | ||
fmt::print(fg(fmt::terminal_color::cyan), "Hello!\n"); | ||
return 0; | ||
} | ||
|
||
/*#include "Poco/Timer.h" | ||
#include "Poco/Thread.h" | ||
#include "Poco/Stopwatch.h" | ||
#include <iostream> | ||
using Poco::Timer; | ||
using Poco::TimerCallback; | ||
using Poco::Thread; | ||
using Poco::Stopwatch; | ||
class TimerExample{ | ||
public: | ||
TimerExample(){ _sw.start();} | ||
void onTimer(Timer& timer){ | ||
std::cout << "Callback called after " << _sw.elapsed()/1000 << " milliseconds." << std::endl; | ||
} | ||
private: | ||
Stopwatch _sw; | ||
}; | ||
int main(int argc, char** argv){ | ||
TimerExample example; | ||
Timer timer(250, 500); | ||
timer.start(TimerCallback<TimerExample>(example, &TimerExample::onTimer)); | ||
Thread::sleep(1000); | ||
timer.stop(); | ||
return 0; | ||
}*/ |
Oops, something went wrong.