Jump to content
Sign in to follow this  
FATIHTALI

I need chronometer for my Test Program

Recommended Posts

FATIHTALI

Hello.

I am creating a small test program.

Program will test something on computers.

We want to know How long time process run. Or how many second program worked.

Anyone can help me for it.

Thanks.

Fatih


Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights.

Share this post


Link to post
Share on other sites
Andreik

I wrote a simple example, just start notepad and then close after some time and this script will tell you how much time was active:

$PROCESS_NAME = InputBox("Chrono","Type here your process name","notepad.exe")

$INIT = TimerInit()
While ProcessExists($PROCESS_NAME)
    Sleep(15)
WEnd
MsgBox(0,"Time",$PROCESS_NAME & " was active: " & Round((TimerDiff($INIT)/1000),2) & " s")

When the words fail... music speaks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×