2009-09-08 12:08:10 +00:00
|
|
|
/* PCSX2 - PS2 Emulator for PCs
|
2010-05-03 14:08:02 +00:00
|
|
|
* Copyright (C) 2002-2010 PCSX2 Dev Team
|
2009-10-04 20:28:08 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU Lesser General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
2009-03-01 03:30:19 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
2009-03-01 03:30:19 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
2009-03-01 03:30:19 +00:00
|
|
|
*/
|
2009-10-04 20:28:08 +00:00
|
|
|
|
2009-07-03 20:48:11 +00:00
|
|
|
#include "../PrecompiledHeader.h"
|
2009-03-01 03:30:19 +00:00
|
|
|
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <sys/time.h>
|
2010-04-25 00:31:27 +00:00
|
|
|
#include <wx/utils.h>
|
2009-03-01 03:30:19 +00:00
|
|
|
|
2009-10-05 02:15:49 +00:00
|
|
|
extern "C" __aligned16 u8 _xmm_backup[16*2];
|
|
|
|
extern "C" __aligned16 u8 _mmx_backup[8*4];
|
2009-10-04 21:49:23 +00:00
|
|
|
|
|
|
|
u8 _xmm_backup[16*2];
|
|
|
|
u8 _mmx_backup[8*4];
|
2009-10-04 20:28:08 +00:00
|
|
|
|
2009-03-01 03:30:19 +00:00
|
|
|
void InitCPUTicks()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
u64 GetTickFrequency()
|
|
|
|
{
|
|
|
|
return 1000000; // unix measures in microseconds
|
|
|
|
}
|
|
|
|
|
|
|
|
u64 GetCPUTicks()
|
|
|
|
{
|
|
|
|
struct timeval t;
|
|
|
|
gettimeofday(&t, NULL);
|
|
|
|
return ((u64)t.tv_sec*GetTickFrequency())+t.tv_usec;
|
|
|
|
}
|
2009-11-26 03:37:10 +00:00
|
|
|
|
|
|
|
wxString GetOSVersionString()
|
|
|
|
{
|
2009-11-27 00:06:56 +00:00
|
|
|
return wxGetOsDescription();
|
2009-11-26 03:37:10 +00:00
|
|
|
}
|
|
|
|
|