Skip to content

Instantly share code, notes, and snippets.

@grimmdev
Created May 18, 2015 01:40
Show Gist options
  • Save grimmdev/703f35b0db03c98ed8c0 to your computer and use it in GitHub Desktop.
Save grimmdev/703f35b0db03c98ed8c0 to your computer and use it in GitHub Desktop.
#pragma strict
import System;
var start : DateTime;
var stop : DateTime;
var repetitions : int = 5000000;
function Start () {
start = DateTime.Now;
for (var i : int = 0; i < repetitions; i++)
{
result = 2 + 3;
}
stop = DateTime.Now;
print("Original - time: " + stop.Subtract(start) + " ms");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment