11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Caché</strong> <strong>ObjectScript</strong> Special VariablesWRITE $ZHOROLOGreturns a value such as: 1036526.244932.The following example shows how you might use $ZHOROLOG to time events and dobenchmarks. This example times an application through 100 executions, then finds the averagerun time.CycletimeSET start=$ZHOROLOGFOR i=1:1:100 { DO Myapp }SET end=$ZHOROLOGWRITE !,"Average run was ",(end-start)/100," seconds."QUITMyappWRITE !,"executing my application"; application code goes hereQUITSee Also• $ZUTIL(188) Local Date/Time with Fractional Seconds function• $HOROLOG special variable• $ZTIMESTAMP special variable$ZIOContains information about the current terminal I/O device.$ZIO$ZIDescription$ZIO contains information about the current I/O device.For a terminal device that is a <strong>Caché</strong> terminal, $ZIO contains the string “TRM:”. For a terminaldevice that is an MS-DOS console, $ZIO contains the string “CON:”.If the current terminal device is connected remotely, $ZIO contains information about theremote connection.For a terminal device connected to a LAT, $ZIO contains the following:server/port474 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!