Skip to content

Commit 8a28492

Browse files
author
Leroy Korterink
committed
Make datetime fallback static
1 parent e70a997 commit 8a28492

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/KBS.Configuration/BenchmarkConfiguration.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ namespace KBS.Configuration
44
{
55
public class BenchmarkConfiguration : BaseConfiguration
66
{
7+
private static readonly string InitializedAt = DateTime.UtcNow.ToString("o");
8+
79
/// <summary>
810
/// Unique benchmark name
911
/// </summary>
10-
public static string Name => GetFromArguments("Name", DateTime.UtcNow.ToString("o"));
12+
public static string Name => GetFromArguments("Name", InitializedAt);
1113

1214
/// <summary>
1315
/// Amount of messages to send during the benchmark

0 commit comments

Comments
 (0)