mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-29 21:12:33 +01:00
19 lines
No EOL
367 B
C#
19 lines
No EOL
367 B
C#
namespace Ryujinx.Core.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;
|
|
}
|
|
}
|
|
}
|
|
} |