From 7f6ab22ab65ab3ef47468fcd6770c55d7ce63229 Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Fri, 7 Feb 2025 17:29:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=82=D0=B5=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Example.Frontend/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Example.Frontend/Program.cs b/Example.Frontend/Program.cs index a8a7c61..bf344d1 100644 --- a/Example.Frontend/Program.cs +++ b/Example.Frontend/Program.cs @@ -36,11 +36,11 @@ var loadSingleton = context.GetSingleObject(typeof(ILoadTest)) as ILoadTest; const int iterations = 10000; var timer = Stopwatch.StartNew(); +var x = 0; for (int i = 0; i < iterations; i++) { - var x = loadSingleton.Next(1); - Console.WriteLine(x); + x = loadSingleton.Next(x); } timer.Stop(); - +Console.WriteLine("X is {0}", x); Console.WriteLine("Time : {0}", timer.Elapsed); \ No newline at end of file