mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Call TimeInit() in headless and unittest
This commit is contained in:
1 parent
5c368cb965
commit
7a0cda93d0
3 files changed
+3
-4
No files matched your search
@@ -1018,9 +1018,6 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||
LogManager::GetInstance()->SetAllLogLevels(LogLevel::LDEBUG);
|
||||
}
|
||||
|
||||
// This still seems to improve performance noticeably.
|
||||
timeBeginPeriod(1);
|
||||
|
||||
ContextMenuInit(_hInstance);
|
||||
MainWindow::Init(_hInstance);
|
||||
MainWindow::Show(_hInstance);
|
||||
|
||||
@@ -318,9 +318,9 @@ std::vector<std::string> ReadFromListFile(const std::string &listFilename) {
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
PROFILE_INIT();
|
||||
TimeInit();
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
SetCleanExitOnAssert();
|
||||
timeBeginPeriod(1);
|
||||
#else
|
||||
// Ignore sigpipe.
|
||||
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
#include "Common/System/System.h"
|
||||
#include "Common/Thread/ThreadUtil.h"
|
||||
#include "Common/Data/Format/IniFile.h"
|
||||
#include "Common/TimeUtil.h"
|
||||
|
||||
#include "Common/ArmEmitter.h"
|
||||
#include "Common/BitScan.h"
|
||||
@@ -1096,6 +1097,7 @@ TestItem availableTests[] = {
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
SetCurrentThreadName("UnitTest");
|
||||
TimeInit();
|
||||
|
||||
printf("CPU name: %s\n", cpu_info.cpu_string);
|
||||
printf("ABI: %s\n", GetCompilerABI());
|
||||
|
||||
Reference in new issue
Block a user