• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

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?
0
cheb1
Asked:
cheb1
  • 5
  • 3
1 Solution
 
dude02Commented:
check out this site it http://www.csgnetwork.com/timemath.html

Hope this helps.

0
 
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.
0
 
dude02Commented:
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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.
0
 
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?
0
 
dude02Commented:
Are you looking to write a script/program to determine the tickcount?

0
 
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
0
 
dude02Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now