improved planner

This commit is contained in:
ALEXks
2025-02-05 19:18:05 +03:00
parent e259a3c2a9
commit 68c21c6955
4 changed files with 45 additions and 7 deletions

View File

@@ -55,6 +55,7 @@ public:
std::chrono::seconds timespan(s);
std::this_thread::sleep_for(timespan);
}
static void Copy(const String& src, const String& dst) {
#if __cplusplus >= 201703L
std::filesystem::copy(src.getCharArray(), dst.getCharArray());
@@ -73,9 +74,11 @@ public:
//printf("cp -r '%s' return code = %d\n",src.getCharArray(),i);
#endif
}
static time_t getAbsoluteTime() {
return time(NULL);
}
static String getDate() {
auto ttime = time(NULL);
String res(ctime(&ttime));