Get Time User has been in program?

How can I know how long it a program has been opened? I see a Environment.Tickcount but how can I convert that to a time in hours, minutes and seconds?
LVL 1
cheb1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dude02Commented:
check out this site it http://www.csgnetwork.com/timemath.html

Hope this helps.

cheb1Author Commented:
I did, and it's a very cool site. But I don't see how this can help me. I don't know java.
dude02Commented:
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

dude02Commented:
This is another helpful  website http://developer.apple.com/documentation/mac/Toolbox/Toolbox-80.html 
It will give you an idea that 1 tickcount = 1/60 of a second. You can get an idea but it wont be accurate.

I hope this helps.
cheb1Author Commented:
site is not of value
and I don't see how it can be 1/60 of a second when tickcount is a millisecond, wouldn't that be 1/1000 of a second?
dude02Commented:
Are you looking to write a script/program to determine the tickcount?

cheb1Author Commented:
I guess I can convert tickcont into the proper amount of hours, minutes, seconds
but then how can I make that into a time. I can do TimerSerial but that seems to give me a time based on the clock, meaning, if I have tickcount that converts to 32 minutes and 12 seconds if I put this into TimeSerial (0,32,12) I get something like this:
#12:32:12 AM# but what I'm looking for is this:
00:32:12

maybe I just have to build a string.
I just thought there should be a built in function to give me the time (in time) that a program has been running
dude02Commented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.