Difference between revisions of "Programmer Guide/Command Reference/TSET"

From STX Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
  <var>var</var> := TSET
 
  <var>var</var> := TSET
 
Start or restart the {{STx}} timer. The <code>TSET</code> command will return a string of the format <code>yyyy.mm.dd hh.mm.ss</code>, indicating the start date and time of the timer, e.g. <code>1969.07.21 03.56.00</code>.
 
Start or restart the {{STx}} timer. The <code>TSET</code> command will return a string of the format <code>yyyy.mm.dd hh.mm.ss</code>, indicating the start date and time of the timer, e.g. <code>1969.07.21 03.56.00</code>.
 +
 +
Once the timer has startet, you may query the number of elapsed seconds by using the {{STx}} command [[Programmer_Guide/Command_Reference/TGET|<code>TGET</code>]].
  
 
The {{STX}} timer is implemented via the standard operating system time functions. The timer gets incremented every second. For more accurate timers, or if you need to use more than one timer at a time, use an {{Stx}} [[Programmer_Guide/Shell_Items/Value|value item]].
 
The {{STX}} timer is implemented via the standard operating system time functions. The timer gets incremented every second. For more accurate timers, or if you need to use more than one timer at a time, use an {{Stx}} [[Programmer_Guide/Shell_Items/Value|value item]].

Revision as of 15:37, 7 May 2014

var := TSET

Start or restart the STx timer. The TSET command will return a string of the format yyyy.mm.dd hh.mm.ss, indicating the start date and time of the timer, e.g. 1969.07.21 03.56.00.

Once the timer has startet, you may query the number of elapsed seconds by using the STx command TGET.

The STx timer is implemented via the standard operating system time functions. The timer gets incremented every second. For more accurate timers, or if you need to use more than one timer at a time, use an STx value item.