- using System.Diagnostics;
- public class Program{
- public const int n=100_0000;
- public delegate void a();
- public static void Main(String[] args){
- a t=()=>{};
- ti.Start();
- for(int i=0;i<n;i++)
- t();
- ti.Stop();
- Console.WriteLine(ti.ElapsedTicks/(decimal)Stopwatch.Frequency/(decimal)n+"s/op");
- }
- }
t
Posted by Anonymous on Sat 1st Oct 2022 15:16
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.