Created
March 24, 2010 18:54
-
-
Save morganp/342639 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
#!/usr/bin/env ruby | |
# Measure performance in seconds of tasks | |
# Record Startime For performance measurements | |
start_time = Time.now | |
#Main part of script goes here | |
#Calculate and Display Execution Time in seconds | |
exec_time = Time.now - start_time | |
puts "Execution time #{exec_time} seconds." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment