Created
May 18, 2015 01:40
-
-
Save grimmdev/703f35b0db03c98ed8c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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