Skip to content

Instantly share code, notes, and snippets.

@Zalexanninev15
Created April 20, 2022 13:41
Show Gist options
  • Save Zalexanninev15/7f439beecb411f3e7b11d56acdb0bf21 to your computer and use it in GitHub Desktop.
Save Zalexanninev15/7f439beecb411f3e7b11d56acdb0bf21 to your computer and use it in GitHub Desktop.
Performance Time
private PerformanceCounter PCounter = new PerformanceCounter();
// Your code
PCounter.Start();// Start measure
// Your code for measurements
double interval = PCounter.End(); // Result interval in seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment