aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Program.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2022-12-20 09:19:45 +0100
committerShadowghost <Ghost_of_Stone@web.de>2022-12-20 09:19:45 +0100
commitef085483b2ef54195e16f282330a3c204e3227b6 (patch)
tree643b41f915fede76716cd0c615a0472989993e76 /Jellyfin.Server/Program.cs
parentb725fbe51af22ca270912eeb4929a8ee2a3b37a4 (diff)
parentb0156792678b37563423c8fc0b10434a18a2a38a (diff)
Merge branch 'master' into network-rewrite
Diffstat (limited to 'Jellyfin.Server/Program.cs')
-rw-r--r--Jellyfin.Server/Program.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index 8529a16d3..125a09478 100644
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@ -94,8 +94,7 @@ namespace Jellyfin.Server
private static async Task StartApp(StartupOptions options)
{
- var stopWatch = new Stopwatch();
- stopWatch.Start();
+ var startTimestamp = Stopwatch.GetTimestamp();
// Log all uncaught exceptions to std error
static void UnhandledExceptionToConsole(object sender, UnhandledExceptionEventArgs e) =>
@@ -217,9 +216,7 @@ namespace Jellyfin.Server
await appHost.RunStartupTasksAsync(_tokenSource.Token).ConfigureAwait(false);
- stopWatch.Stop();
-
- _logger.LogInformation("Startup complete {Time:g}", stopWatch.Elapsed);
+ _logger.LogInformation("Startup complete {Time:g}", Stopwatch.GetElapsedTime(startTimestamp));
// Block main thread until shutdown
await Task.Delay(-1, _tokenSource.Token).ConfigureAwait(false);