From e2c657bf2d825a9602a427cf44ee8960f7dddbb4 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Wed, 23 Jun 2021 14:20:11 -0700 Subject: [PATCH] :racehorse: supplemented chrono ms for ctime time() --- include/transaction.h | 2 +- src/transaction.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/transaction.h b/include/transaction.h index a82115b..e015b52 100644 --- a/include/transaction.h +++ b/include/transaction.h @@ -1,7 +1,7 @@ #pragma once #include -#include #include +#include struct Transaction { diff --git a/src/transaction.cpp b/src/transaction.cpp index e073c24..f80490d 100644 --- a/src/transaction.cpp +++ b/src/transaction.cpp @@ -11,5 +11,5 @@ Transaction::Transaction(std::string from_str, std::string to_str, uint32_t amou using namespace std::chrono; from = std::move(from_str); to = std::move(to_str); - time = duration_cast(system_clock::now().time_since_epoch()).count(); + time = std::time(NULL); } \ No newline at end of file