Soo Hwan's Blog

Sunday, April 19, 2009

Performance Timer ..

From http://java.sun.com/developer/JDCTechTips/2002/tt0305.html

class MyTimer {         
private final long start;              
public MyTimer() {             
start = System.currentTimeMillis();         
}              
public long getElapsed() {             
return System.currentTimeMillis() - start;         
}     
}




Posted by SooHwan Park at 7:14 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2011 (16)
    • ►  September (1)
    • ►  July (1)
    • ►  March (1)
    • ►  February (13)
  • ▼  2009 (40)
    • ►  July (7)
    • ►  June (1)
    • ►  May (11)
    • ▼  April (17)
      • Bazaar
      • Performance Timer ..
      • Summary of techniques used in Dynamo and their adv...
      • Object versioning
      • Consistent Hashing
      • Mercurial & Maven
      • Consistent hashing
      • Amazon Elastic MapReduce
      • Amazon Simple Queue Service (Amazon SQS)
      • Synchronization Problems
      • Matrix multiplication
      • Installing Tomcat 6 on Ubuntu
      • Hosting Rails Apps Using Nginx and Mongrel Cluster
      • HOW TO CREATE PATCH FILE USING PATCH AND DIFF
      • How to Use a Patch for an Open Source Project
      • Make a Patch for an Open Source Project
      • Databases in AppScale
    • ►  March (4)

About Me

My photo
SooHwan Park
A Software Engineer at Mu in Sunnyvale
View my complete profile
Picture Window theme. Powered by Blogger.