src/demo was removed, src/examples and src/benchmarks were moved to the top level

This commit is contained in:
Marko Budiselic
2016-12-04 10:20:14 +01:00
parent aedcb1c244
commit 0a0e5e93da
134 changed files with 7 additions and 26389 deletions

23
example/timestamp.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <iostream>
#include <chrono>
#include <thread>
#include "utils/datetime/timestamp.hpp"
int main(void)
{
auto timestamp = Timestamp::now();
std::cout << timestamp << std::endl;
std::cout << Timestamp::now() << std::endl;
std::this_thread::sleep_for(std::chrono::milliseconds(250));
std::cout << Timestamp::now().to_iso8601() << std::endl;
std::cout << std::boolalpha;
std::cout << (timestamp == Timestamp::now()) << std::endl;
return 0;
}