The Graham Utilities for OS/2 - Version 2


[Warpspeed]

[Table of Contents] [Index] [Previous] [Next]


TM - Time Mark

Summary

TM displays the current time and date in a more readable format than OS/2 provides. It also provides multiple timer support.

Icon

Command Line Format

Usage: TM { [Commands] <Switches> }

Switches

-c<n>
Specify timer n.
-l
Write on the left side of screen.
-n
No current time or date display.

Note : The default output is the time and date on the right side of the screen.

Commands

start
Start the timer specified with the -c switch.
stop
Stop the timer specified with the -c switch.

Description

TM displays the current time and date (in a more readable format than OS/2 provides), via the DATE and TIME commands. It also provides multiple timer support. You can use these timers as stop watches. Because the information is stored in your OS2.INI file, the timers will work even after your machine has been restarted.

-c Start or Stop timer

When the Start or Stop parameter is given, this switch starts or stops the given timer number respectively. Valid timers are from 1 to 32767.

-l Write on the left side of screen

By default, TM displays the date and time information on the right hand side of the screen. The -l switch forces TM to display the date and time on the left hand side of the screen.

-n No current time or date display

This switch tells TM not to display the current date or time. Its main use is in conjunction with the timer displays.

Examples

TM start -c99 -n
Starts timer 99. No current time and date is displayed.
TM start -c1 -c2 -c3
This starts timers 1, 2 and 3. The current time and date is displayed.
TM stop -c2 -c3
This displays the elapsed time for timers 2 and 3. It does not actually stop the timer, as the original start time is saved in the OS2.INI file. What TM does is to calculate the time difference and display the result. This gives you the ability to continually stop and monitor the progress of a timer - similar to "lap" timing.