
Infinite Loop Durations
RunOfTheShipe
0 Likes0 Commentscsharpbool ever = true; DateTime start = DateTime.Now; // Recommend running this part on a separate thread. It may block the UI. for(; ever;) { } Console.WriteLine(DateTime.Now - start);
bool ever = true;
DateTime start = DateTime.Now;
// Recommend running this part on a separate thread. It may block the UI.
for(; ever;)
{ }
Console.WriteLine(DateTime.Now - start);