ptime

Package: WA2L/WinTools 1.2.09
Section: General Commands (1)
Updated: 13 May 2026
Index Return to Main Contents

 

NAME

ptime - time a command

 

SYNOPSIS

WA2LWinTools/lib/[shell/]ptime

ptime command

ptime "command options..."

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

run the specified command and measure the execution time (run time) in seconds, accurate to 5 millisecond or better.

It is an automatic process timer, or program timer.

For example, to time the command "DIR C: /S" use:

  ptime "dir c: /s"

The specified command will be executed. Once it terminates, a final line such as the following will be displayed:

  Execution time: 5.675 s

The timer precision depends on the specific operating system. Under Windows NT, the precision is 5 milliseconds or better.

As a general rule, don't take the 3rd decimal point too seriously.

 

OPTIONS

 
usage message.

command
command to execute and measure execution time.

options
options for the given command.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

-1
usage printed.

 

FILES

-

 

EXAMPLES

-

 

SEE ALSO

wintoolsintro(1)

 

NOTES

parts of this manpage were extracted from the ptime.txt readme file of Jem Berkes.

 

BUGS

-

 

AUTHOR

ptime was developed by Jem Berkes <jberkes@pc-tools.net> and integrated into WA2L/WinTools by Christian Walther. Send suggestions and bug reports regarding the integration to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2026 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 17:58:21 GMT, May 06, 2026