1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
Andrey Filipenkov 2021-03-07 19:18:26 +03:00
parent 98d507d0a5
commit 26a1cc5b73
2 changed files with 2 additions and 4 deletions

View File

@ -53,7 +53,7 @@ public:
private:
si64 clock()
{
#ifdef __FreeBSD__
#ifdef __FreeBSD__ // TODO: enable also for Apple?
struct rusage usage;
getrusage(RUSAGE_SELF, &usage);
return static_cast<si64>(usage.ru_utime.tv_sec + usage.ru_stime.tv_sec) * 1000000 + usage.ru_utime.tv_usec + usage.ru_stime.tv_usec;

View File

@ -916,7 +916,7 @@ int main(int argc, char * argv[])
signal(SIGSEGV, handleLinuxSignal);
#endif
// todo ios: double console log
// todo ios: double console log in single-process mode. Why removing the lines below breaks connecting to local server?!
console = new CConsoleHandler();
CBasicLogConfigurator logConfig(VCMIDirs::get().userLogsPath() / "VCMI_Server_log.txt", console);
logConfig.configureDefault();
@ -927,7 +927,6 @@ int main(int argc, char * argv[])
argc = 1;
boost::condition_variable * cond = reinterpret_cast<boost::condition_variable *>(argv[1]);
cond->notify_one();
//#endif
#else
handleCommandOptions(argc, argv, opts);
preinitDLL(console);
@ -936,7 +935,6 @@ int main(int argc, char * argv[])
loadDLLClasses();
srand((ui32)time(nullptr));
//#ifdef VCMI_IOS
#endif
try
{