mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[server] Add timeBeginPeriod
This commit is contained in:
parent
a1ec7b149e
commit
ba956da957
@ -290,6 +290,7 @@ int main (int argc, char** argv)
|
|||||||
|
|
||||||
// Setup the exception handler on windows
|
// Setup the exception handler on windows
|
||||||
SetUnhandledExceptionFilter(exc_handler);
|
SetUnhandledExceptionFilter(exc_handler);
|
||||||
|
timeBeginPeriod(1); // increases the accuracy of Sleep()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Load up the plugins
|
// Load up the plugins
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#define SLEEP(x) { Sleep(x); }
|
#define SLEEP(x) { Sleep(x); }
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <mmsystem.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
#define SLEEP(x) { usleep(x * 1000); }
|
#define SLEEP(x) { usleep(x * 1000); }
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="winmm.lib"
|
||||||
OutputFile="$(OutDir)/samp-server.exe"
|
OutputFile="$(OutDir)/samp-server.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
GenerateDebugInformation="TRUE"
|
GenerateDebugInformation="TRUE"
|
||||||
@ -76,6 +77,7 @@
|
|||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="winmm.lib"
|
||||||
OutputFile="$(OutDir)/samp-server.exe"
|
OutputFile="$(OutDir)/samp-server.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="TRUE"
|
GenerateDebugInformation="TRUE"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user