|
|
@ -1,22 +1,8 @@ |
|
|
// Copyright (c) 2012- PPSSPP Project / Dolphin Project. |
|
|
|
|
|
|
|
|
// Copyright 2013 Dolphin Emulator Project |
|
|
|
|
|
// Licensed under GPLv2 |
|
|
|
|
|
// Refer to the license.txt file included. |
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify |
|
|
|
|
|
// it under the terms of the GNU General Public License as published by |
|
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions. |
|
|
|
|
|
|
|
|
|
|
|
// This program 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 2.0 for more details. |
|
|
|
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program. |
|
|
|
|
|
// If not, see http://www.gnu.org/licenses/ |
|
|
|
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at |
|
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. |
|
|
|
|
|
|
|
|
|
|
|
#ifndef CORE_CORE_TIMING_H_ |
|
|
|
|
|
#define CORE_CORE_TIMING_H_ |
|
|
|
|
|
|
|
|
#pragma once |
|
|
|
|
|
|
|
|
// This is a system to schedule events into the emulated machine's future. Time is measured |
|
|
// This is a system to schedule events into the emulated machine's future. Time is measured |
|
|
// in main CPU clock cycles. |
|
|
// in main CPU clock cycles. |
|
|
@ -69,8 +55,8 @@ inline s64 cyclesToUs(s64 cycles) { |
|
|
return cycles / (g_clock_rate_arm11 / 1000000); |
|
|
return cycles / (g_clock_rate_arm11 / 1000000); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
namespace CoreTiming |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
namespace CoreTiming { |
|
|
|
|
|
|
|
|
void Init(); |
|
|
void Init(); |
|
|
void Shutdown(); |
|
|
void Shutdown(); |
|
|
|
|
|
|
|
|
@ -121,5 +107,3 @@ namespace CoreTiming |
|
|
extern int slicelength; |
|
|
extern int slicelength; |
|
|
|
|
|
|
|
|
}; // namespace |
|
|
}; // namespace |
|
|
|
|
|
|
|
|
#endif // CORE_CORE_TIMING_H_ |
|
|
|