diff --git a/services/backup/docker-server/contents/server/src/Tools.cpp b/services/backup/docker-server/contents/server/src/Tools.cpp new file mode 100644 index 000000000..5b7cc5ebf --- /dev/null +++ b/services/backup/docker-server/contents/server/src/Tools.cpp @@ -0,0 +1,15 @@ +#include "Tools.h" + +#include + +namespace comm { +namespace network { + +uint64_t getCurrentTimestamp() { + using namespace std::chrono; + return duration_cast(system_clock::now().time_since_epoch()) + .count(); +} + +} // namespace network +} // namespace comm diff --git a/services/backup/docker-server/contents/server/src/Tools.h b/services/backup/docker-server/contents/server/src/Tools.h new file mode 100644 index 000000000..8c3e8ed4d --- /dev/null +++ b/services/backup/docker-server/contents/server/src/Tools.h @@ -0,0 +1,11 @@ +#pragma once + +#include + +namespace comm { +namespace network { + +uint64_t getCurrentTimestamp(); + +} // namespace network +} // namespace comm