i need to can we implement showing a label with total time taken for the process to execute in JAVA? and how? any code spinet?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
use timestamps
when your executable starts call:
And store the result in a known location. Then whenever you want to figure out how long you have been running just:
totaltime will hold the total executtion time in nanoseconds. you could set some sort of timer even to call this and update a label if you want to constantly update it.