Article View: borland.public.jbuilder.java.language
Article #7332Re: Measure Time
From: dnoyeB
Date: Wed, 27 Jun 2001 12:47
Date: Wed, 27 Jun 2001 12:47
53 lines
1857 bytes
1857 bytes
ARe you trying to profile your code?? try this java -Xrunhprof:cpu=samples,depth=4,thread=y <class or jar 2 run here> run your program and execute it normally. Then view the file it spits out. go look on the sun site for profiling. there is an assistant program called PerfAnal.jar i have used it, and it does a good job. "Shoo" <edwinshoo@supanet.com> wrote in message news:3b39d5d1_2@dnews... > Hello~ > > I wanna measure how long does a meathod take to finish its function. > > For example, the following meathod > > > > outputClient1.write(a, 0 ,c); > > > > What should I put between the meathod? > > Or, is there any timeing function for measuring time? > > Class Timestamp? > > Thanks for your reply. > > I do appreicate! > > Best regards, > > Shoo > > > PS: By the way, is there any nice web resourse which give a piece of code to > show the basic function of each class? > Thanks~ > > > > > > > >
Technical Details
Message-ID:
<3b39da81$3_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b39d5d1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,f5ad0b6dba6ad7b0 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-27 06:10:55 PST From: "dnoyeB" <lamont_gilbert @ rigidsoftware.com> Newsgroups: borland.public.jbuilder.java.language References: <3b39d5d1_2@dnews> Subject: Re: Measure Time Date: Wed, 27 Jun 2001 08:47:39 -0400 Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 63.68.196.49 Message-ID: <3b39da81$3_1@dnews> X-Trace: dnews 993647233 63.68.196.49 (27 Jun 2001 06:07:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews