Make Windows sleep for less

This commit is contained in:
Lorenzooone
2025-02-10 21:47:50 +01:00
parent 50ba513adc
commit 5c3b79b85e
4 changed files with 20 additions and 1 deletions

View File

@@ -3,6 +3,9 @@
#if defined (__linux__) && defined(XLIB_BASED)
#include <X11/Xlib.h>
#endif
#ifdef _WIN32
#include <windows.h>
#endif
#include <iostream>
#include <fstream>
#include <sstream>
@@ -195,6 +198,19 @@ void init_threads(void) {
#if defined(__linux__) && defined(XLIB_BASED)
XInitThreads();
#endif
/*
#ifdef _WIN32
timeBeginPeriod(4);
#endif
*/
}
void complete_threads(void) {
/*
#ifdef _WIN32
timeEndPeriod(4);
#endif
*/
}
std::string get_version_string(bool get_letter) {