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