mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-29 16:37:03 +00:00
nn_fp: Full rework of friend service
This commit is contained in:
parent
13a50a915e
commit
0d71885c88
37 changed files with 2862 additions and 1991 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "boost/nowide/convert.hpp"
|
||||
#include <charconv>
|
||||
|
||||
// todo - move the Cafe/PPC specific parts to CafeString.h eventually
|
||||
namespace StringHelpers
|
||||
{
|
||||
// convert Wii U big-endian wchar_t string to utf8 string
|
||||
|
|
|
|||
|
|
@ -36,6 +36,16 @@ public:
|
|||
static HighResolutionTimer now();
|
||||
static HRTick getFrequency();
|
||||
|
||||
static HRTick microsecondsToTicks(uint64 microseconds)
|
||||
{
|
||||
return microseconds * m_freq / 1000000;
|
||||
}
|
||||
|
||||
static uint64 ticksToMicroseconds(HRTick ticks)
|
||||
{
|
||||
return ticks * 1000000 / m_freq;
|
||||
}
|
||||
|
||||
private:
|
||||
HighResolutionTimer(uint64 timePoint) : m_timePoint(timePoint) {};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue