Skip to content

Instantly share code, notes, and snippets.

@cheriimoya
Created March 2, 2018 10:10
Show Gist options
  • Save cheriimoya/595e31419776f5686daf36a1d91b5255 to your computer and use it in GitHub Desktop.
Save cheriimoya/595e31419776f5686daf36a1d91b5255 to your computer and use it in GitHub Desktop.
if (!File.Exists("benchmark.bin")) {
PerformanceMark newBenchmark = Connector.DoBenchmark();
File.WriteAllBytes("benchmark.bin", Connector.SaveBenchmark());
} else {
Connector.LoadBenchmark(File.ReadAllBytes("benchmark.bin"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment