mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
Update main.cpp
This commit is contained in:
parent
942cad4b56
commit
6d56e8176c
1 changed files with 2 additions and 1 deletions
3
main.cpp
3
main.cpp
|
|
@ -5,6 +5,7 @@
|
|||
#include <unistd.h>
|
||||
#include "bank_f.hpp"
|
||||
|
||||
using namespace std::chrono;
|
||||
using namespace drogon;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
@ -35,7 +36,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
std::this_thread::sleep_for(std::chrono::minutes(saving_freq));
|
||||
bank.Save();
|
||||
std::cout<<"Saving\n";
|
||||
std::cout<<"Saving "<<duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count()<<'\n';
|
||||
}
|
||||
}).detach();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue