mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-12 15:12:33 -07:00
Rename Ryujinx.Core to Ryujinx.HLE and add a separate project for a future LLE implementation
This commit is contained in:
19
Ryujinx.HLE/OsHle/Kernel/NsTimeConverter.cs
Normal file
19
Ryujinx.HLE/OsHle/Kernel/NsTimeConverter.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Ryujinx.HLE.OsHle.Kernel
|
||||
{
|
||||
static class NsTimeConverter
|
||||
{
|
||||
public static int GetTimeMs(ulong Ns)
|
||||
{
|
||||
ulong Ms = Ns / 1_000_000;
|
||||
|
||||
if (Ms < int.MaxValue)
|
||||
{
|
||||
return (int)Ms;
|
||||
}
|
||||
else
|
||||
{
|
||||
return int.MaxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user