What is the best way to measure execution time of a function? [duplicate]

System.Environment.TickCount and the System.Diagnostics.Stopwatch class are two that work well for finer resolution and straightforward usage. See Also: Is DateTime.Now the best way to measure a function’s performance? High resolution timer in .NET Environment.TickCount vs DateTime.Now What’s the best way to benchmark programs in Windows?

How to solve time out in phpmyadmin?

If even after repeated upload you still get timeout error, pleasechange your settings in \phpmyadmin\libraries\config.default.php from $cfg[‘ExecTimeLimit’] = 300; to $cfg[‘ExecTimeLimit’] = 0; and restart. Now there is no execution time limit (trust we are talking about local server). Source : Change Script time out in phpmyadmin