mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
19 lines
366 B
C#
19 lines
366 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
} |