mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
🐎 supplemented chrono ms for ctime time()
This commit is contained in:
parent
9be3333efb
commit
e2c657bf2d
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <chrono>
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include <ctime>
|
||||||
|
|
||||||
struct Transaction
|
struct Transaction
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,5 @@ Transaction::Transaction(std::string from_str, std::string to_str, uint32_t amou
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
from = std::move(from_str);
|
from = std::move(from_str);
|
||||||
to = std::move(to_str);
|
to = std::move(to_str);
|
||||||
time = duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count();
|
time = std::time(NULL);
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue