Results 1 to 2 of 2
  1. #1
    Shravee is offline Member
    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    0

    Post how to determine exetion or elapsed time in eclipse for an application

    HI all,

    I am running a java application in eclipse juno. It runs for quite sometime so i cant monitor continuosly.

    my question is how to determine the time taken by the java program that is run in eclipse.

    I can find the start time is marked in console but the end time or the elapsed time is not visible to me.

    thanks in advance
    -shravee.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    United States
    Posts
    2,931
    Rep Power
    4

    Default Re: how to determine exetion or elapsed time in eclipse for an application

    If you know where the program begins and where the program exits you can use the System.nanoTime() method. Check out the JDK API. It provides an example of how to time code execution.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

Similar Threads

  1. Replies: 4
    Last Post: 08-09-2012, 06:18 PM
  2. Replies: 9
    Last Post: 06-20-2012, 08:25 PM
  3. Replies: 0
    Last Post: 09-21-2011, 08:18 AM
  4. How to detect first time login to the web application
    By dmane in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 08-04-2010, 06:18 PM
  5. getting time elapsed in seconds
    By ali_sakar in forum New To Java
    Replies: 3
    Last Post: 03-06-2009, 08:37 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •