예제 #1
0
 static Specific()
 {
     if (Environment.OSVersion.Platform == PlatformID.Win32NT)
     {
         PlatformHighResolutionTime = new Windows.HighResolutionTime();
         PlatformThreading          = new Windows.Threading();
     }
     else
     {
         PlatformHighResolutionTime = new Standard.HighResolutionTime();
         PlatformThreading          = new Standard.Threading();
     }
 }
예제 #2
0
파일: Platform.cs 프로젝트: sandrist/psi
 static Specific()
 {
     if (Environment.OSVersion.Platform == PlatformID.Win32NT)
     {
         // Windows high-resolution timer APIs (e.g. TimeSetEvent in winmm.dll) are unavaliable on ARM
         PlatformHighResolutionTime = new Windows.HighResolutionTime();
         PlatformThreading          = new Windows.Threading();
         FileHelper = new Windows.FileHelper();
     }
     else
     {
         PlatformHighResolutionTime = new Standard.HighResolutionTime();
         PlatformThreading          = new Standard.Threading();
         FileHelper = new Standard.FileHelper();
     }
 }