2018-06-10 20:46:42 -04:00
|
|
|
namespace Ryujinx.HLE.OsHle.Kernel
|
2018-04-19 03:06:23 -04:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|