Results 1 to 1 of 1
Thread: measuring time in millsecond
-
measuring time in millsecond
Sometimes it is useful to measure how much time a function takes. This can be done using following code:
Java Code:long startTime = System.currentTimeMillis(); // call function obj.callFunction(); long endTime = System.currentTimeMillis(); long timeDifference = endTime - startTime;
Similar Threads
-
Hello, first time here.
By ludragon in forum IntroductionsReplies: 2Last Post: 01-03-2008, 05:03 AM -
measuring time in nano seconds
By Java Tip in forum Java TipReplies: 0Last Post: 11-06-2007, 12:11 PM -
Time method
By carderne in forum New To JavaReplies: 5Last Post: 11-05-2007, 09:34 AM -
DataObject with the time given by me
By garinapavan in forum New To JavaReplies: 2Last Post: 08-07-2007, 06:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks