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