2018-06-11 02:46:42 +02:00
|
|
|
namespace Ryujinx.HLE.OsHle.Kernel
|
2018-04-19 09:06:23 +02: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|