Call DateTime.Now in the Candidate process accepted/tizen/unified/20240411.142654 accepted/tizen/unified/x/20240412.023911
authorWoongsuk Cho <ws77.cho@samsung.com>
Tue, 9 Apr 2024 09:14:17 +0000 (18:14 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Tue, 9 Apr 2024 09:35:31 +0000 (18:35 +0900)
To reduce the delay that occurs when DateTime.Now is first called,
it is called in the candidate process.

Managed/Tizen.Runtime/Preloader.cs

index 9ee11c7..65cd966 100644 (file)
@@ -36,6 +36,8 @@ namespace Tizen.Runtime
         {
             _ = CultureInfo.CurrentCulture.CompareInfo.Compare("abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", CompareOptions.IgnoreCase);
             _ = "abc".ToUpper().ToLower();
+
+            Console.WriteLine($"Preload DateTime : {DateTime.Now}");
         }
 
         public static void CoreclrPreload()