skip to main
|
skip to sidebar
The Code is a Harsh Mistress
Tuesday, March 4, 2014
Ruby Tricks - Listing time spent in code
<some code>
@@t = ::Time.now
<more code>
puts "Time: " + (::Time.now-@@t).to_s + "\n"
Note: the ::Time is only there because I ran into a conflict between the Time class in Ruby and the Time class in one of the gems I'm using.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Interests
Java, Groovy (and Grails), Ruby (and Rails), Spring, Agile Development Methodologies, Software Architecture, User Interface Design
Favorite Links
Twin Cities Java Users Group
Groovy Users of Minnesota
Twin Cities Linux Users Group
Minnesota Flex Programmers
Blog Archive
►
2016
(1)
►
March
(1)
►
2015
(1)
►
May
(1)
▼
2014
(3)
►
November
(2)
▼
March
(1)
Ruby Tricks - Listing time spent in code
►
2012
(1)
►
July
(1)
►
2010
(2)
►
June
(1)
►
January
(1)
►
2009
(3)
►
October
(1)
►
September
(2)
►
2008
(3)
►
April
(1)
►
January
(2)
About Me
Brady
I want to give the moon to every one who tries to steal something from me. (Google "ryokan stolen moon" for an explanation of sorts.)
View my complete profile
No comments:
Post a Comment