Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

hundsec

The hundsec instruction gets the system time in hundredths of a second.

Synopsis

hundsec(type.dst)

Description

The hundsec instruction loads the integer type.dst with the system time in hundredths of a second.

Do not use the hundsec instruction in a loop to insert delays in script execution. Use the sleep or nap instructions instead.

Example

In the following example, HSEC2 contains the duration of the dbase call in hundredths of a second.

#define HSEC1 10
#define HSEC2 14

...

hundsec(int.HSEC1)
dbase(DIP, GET_DATA, ch.SENDBUF, 20, ch.RCVBUF, 100)
hundsec(int.HSEC2)
decr(int.HSEC2, int.HSEC1)

© 2006 Avaya Inc. All Rights Reserved.