Hi,
I am trying to calculate the elapse time of some actions -- Get current time start = long System.currentTimeMillis() say start displays current time in miliseconds fine. -- Do something... -- Get new current time end = long System.currentTimeMillis() say end displays new current time in miliseconds fine. elapsedTimeMillis = long end-start say elapsedTimeMillis results in 0. what I am doing wrong here??? TIA Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://ns.hursley.ibm.com/pipermail/ibm-netrexx/attachments/20070413/85492672/attachment.html |
Hi, once I had an issue and was due to numeric digits limit. Your issue is slightly different but give this a try: Insert this line at the start of the script: numeric digits 20 Hope this helps, Alejandro "Michael Dag" <michael.dag.emai [hidden email]> To Sent by: "'IBM Netrexx'" ibm-netrexx-bounc <[hidden email]> [hidden email] cc m Subject [Ibm-netrexx] display elapsetime ? 13/04/2007 10:43 Please respond to IBM Netrexx <ibm-netrexx@hurs ley.ibm.com> Hi, I am trying to calculate the elapse time of some actions -- Get current time start = long System.currentTimeMillis() say start displays current time in miliseconds fine. -- Do something... -- Get new current time end = long System.currentTimeMillis() say end displays new current time in miliseconds fine. elapsedTimeMillis = long end-start say elapsedTimeMillis results in 0. what I am doing wrong here??? TIA Michael_______________________________________________ Ibm-netrexx mailing list [hidden email] |
That's it!!!
Big thank you!!! Michael -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email] Sent: vrijdag 13 april 2007 10:54 To: IBM Netrexx Subject: Re: [Ibm-netrexx] display elapsetime ? Hi, once I had an issue and was due to numeric digits limit. Your issue is slightly different but give this a try: Insert this line at the start of the script: numeric digits 20 Hope this helps, Alejandro "Michael Dag" <michael.dag.emai [hidden email]> To Sent by: "'IBM Netrexx'" ibm-netrexx-bounc <[hidden email]> [hidden email] cc m Subject [Ibm-netrexx] display elapsetime ? 13/04/2007 10:43 Please respond to IBM Netrexx <ibm-netrexx@hurs ley.ibm.com> Hi, I am trying to calculate the elapse time of some actions -- Get current time start = long System.currentTimeMillis() say start displays current time in miliseconds fine. -- Do something... -- Get new current time end = long System.currentTimeMillis() say end displays new current time in miliseconds fine. elapsedTimeMillis = long end-start say elapsedTimeMillis results in 0. what I am doing wrong here??? TIA Michael_______________________________________________ Ibm-netrexx mailing list [hidden email] _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Free forum by Nabble | Edit this page |