🐎 supplemented chrono ms for ctime time()

This commit is contained in:
EntireTwix 2021-06-23 14:20:11 -07:00
parent 9be3333efb
commit e2c657bf2d
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <chrono>
#include <cstdint>
#include <ctime>
struct Transaction
{

View file

@ -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<milliseconds>(system_clock::now().time_since_epoch()).count();
time = std::time(NULL);
}