aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/Logging.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-03-12 01:04:52 -0300
committergdkchan <gab.dark.100@gmail.com>2018-03-12 01:14:12 -0300
commit7a27990faa557c5c93f52e5cb082d551ad119ed0 (patch)
treea0800fded014a4a6afe738e5a65a17bc78cf0c19 /Ryujinx.Core/Logging.cs
parent3aaa4717b6f7400bac862e589a1f345e70e78d56 (diff)
Allow more than one process, free resources on process dispose, implement SvcExitThread
Diffstat (limited to 'Ryujinx.Core/Logging.cs')
-rw-r--r--Ryujinx.Core/Logging.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Ryujinx.Core/Logging.cs b/Ryujinx.Core/Logging.cs
index d544a5d6..89064ccb 100644
--- a/Ryujinx.Core/Logging.cs
+++ b/Ryujinx.Core/Logging.cs
@@ -8,7 +8,8 @@ namespace Ryujinx.Core
{
public static class Logging
{
- private static Stopwatch ExecutionTime = new Stopwatch();
+ private static Stopwatch ExecutionTime;
+
private const string LogFileName = "Ryujinx.log";
private static bool EnableInfo = Config.LoggingEnableInfo;
@@ -23,6 +24,10 @@ namespace Ryujinx.Core
static Logging()
{
if (File.Exists(LogFileName)) File.Delete(LogFileName);
+
+ ExecutionTime = new Stopwatch();
+
+ ExecutionTime.Start();
}
public static string GetExecutionTime()