Gammadyne Corporation

TIMER.EXE

TIMER.EXE is a free Windows command line program that measures the length of time that other command line operations take to finish.  When executed with no parameters, the timer is started.  If the "/s" switch is specified, the elapsed time is output to the console.

Usage

TIMER [/et] [/f"filepath"] [/n] [/nologo] [/q] [/r] [/reset] [/s] [/sw]


Switches:
/etWhen stopping the timer, display the current date and time.
/fFilepath of the file that records the start time.  The filepath must be quoted, and must follow the /f switch immediately (no spaces).  If no path is specified, the file is created in the same folder as timer.exe.  Defaults to "timer.txt".
/nDisplay the elapsed time numerically (e.g. hh:mm:ss.uu)
/nologoSuppress the title banner.
/qQuiet mode - do not report current time when starting timer.
/rReport the elapsed time without stopping the timer.
/resetDelete all existing start times.
/sStop timer and report elapsed time.
/swStopwatch mode: stop the timer when a key is pressed.

Example

c:\dos>timer
Timer 4.2 - Command Line Timer - www.Gammadyne.com
Copyright (C) 2007-2024 by Greg Wittmeyer - All Rights Reserved
Timer started: 4/8/2024 2:27:17 PM

c:\dos>timer /s /nologo
4.5 seconds


Notes

  • A file is used to record the time that the timer started.  Unless overridden by the /f switch, this file is named "timer.txt" and is located in the same folder as TIMER.EXE.
  • Each call to TIMER.EXE without the /s switch should be balanced by one call with the /s switch.  Nesting is supported.

Download

Click the button below to download version 4.2 of TIMER.EXE, released April 20th, 2024.