saving alternate build method. About to go back to regular visual studio build, but may pursue this approach in the future

This commit is contained in:
2025-09-09 09:44:15 -05:00
parent 7c4f089f2e
commit 2d38f74371
26 changed files with 40 additions and 659 deletions

View File

@@ -1,10 +0,0 @@
#pragma once
#include <string>
void log(const char* msg);
void log(std::string msg);
void log(char*, int len);
void flush(const char* filepath);
void start_auto_flush_thread(const char* filepath, double period);
void start_auto_flush_thread();

View File

@@ -135,25 +135,25 @@ void dispose(Semaphore &s) {
TimeSpan from_ms(double milliseconds) {
TimeSpan ts;
ts.QuadPart = static_cast<int64_t>(milliseconds/1000.0)*freq.QuadPart;
ts.QuadPart = static_cast<LONGLONG>(milliseconds/1000.0)*freq.QuadPart;
return ts;
}
TimeSpan from_s(double seconds) {
TimeSpan ts;
ts.QuadPart = static_cast<int64_t>(seconds)*freq.QuadPart;
ts.QuadPart = static_cast<LONGLONG>(seconds)*freq.QuadPart;
return ts;
}
TimeSpan from_min(double minutes) {
TimeSpan ts;
ts.QuadPart = static_cast<int64_t>(minutes*60.0)*freq.QuadPart;
ts.QuadPart = static_cast<LONGLONG>(minutes*60.0)*freq.QuadPart;
return ts;
}
TimeSpan from_hours(double hours) {
TimeSpan ts;
ts.QuadPart = static_cast<int64_t>(hours*60.0*60.0)*freq.QuadPart;
ts.QuadPart = static_cast<LONGLONG>(hours*60.0*60.0)*freq.QuadPart;
return ts;
}