Ryujinx/Ryujinx.HLE/OsHle/Kernel/NsTimeConverter.cs

19 lines
366 B
C#
Raw Normal View History

2018-06-16 03:20:48 +02:00
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;
}
}
}
}