changed framework to dotnet6

This commit is contained in:
2021-12-31 00:18:05 +03:00
parent d04855bff2
commit a4d5df3fd6
26 changed files with 1194 additions and 1324 deletions

18
Experimental/Tester.cs Normal file
View File

@@ -0,0 +1,18 @@
using System;
using System.Diagnostics;
namespace DTLib.Experimental
{
public static class Tester
{
public static void LogOperationTime(string op_name, int repeats, Action operation)
{
Stopwatch clock = new();
clock.Start();
for (int i = 0; i < repeats; i++)
operation();
clock.Stop();
PublicLog.LogNoTime("c",$"operation {op_name} took {clock.ElapsedTicks / repeats} ticks\n");
}
}
}