Skip to content

Instantly share code, notes, and snippets.

@gngenius02
Created February 9, 2020 13:05
Show Gist options
  • Save gngenius02/9a3cf25a02b53765cca58912365e2448 to your computer and use it in GitHub Desktop.
Save gngenius02/9a3cf25a02b53765cca58912365e2448 to your computer and use it in GitHub Desktop.
void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
Debug.Log("Rolling");
float time = Time.realtimeSinceStartup;
for (int i = 0; i < 10000; i++)
{
GenerateSHA512String('abc');
}
Debug.Log((Time.realtimeSinceStartup-time)*1000+"ms");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment