🔥 "#include <chrono>"

This commit is contained in:
EntireTwix 2021-07-31 22:11:10 -07:00
parent 5f74e0ce12
commit 09408ae800

View file

@ -1,5 +1,4 @@
#include <iostream>
#include <chrono>
#include <thread>
#include <sys/types.h>
#include <unistd.h>
@ -94,8 +93,7 @@ int main(int argc, char **argv)
const unsigned long saving_freq = std::stoul(std::string(argv[2]));
if (saving_freq) //if saving frequency is 0 then auto saving is turned off
{
std::thread([saving_freq]()
{
std::thread([saving_freq]() {
while (1)
{
std::this_thread::sleep_for(std::chrono::minutes(saving_freq));