Jump to content

I need chronometer for my Test Program


Recommended Posts

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.
Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...