Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

time delay

Former Member
0 Likes
622

i want to give a time delay of 250 nicroseconds.could u kindly give me a code for this.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
549

Hi,

Use the command WAIT UP TO..

Example..

WAIT UP TO '0.01' SECONDS.

Thanks,

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
550

Hi,

Use the command WAIT UP TO..

Example..

WAIT UP TO '0.01' SECONDS.

Thanks,

Naren

Read only

Former Member
0 Likes
549

You can try:

WAIT UP TO X SECONDS.

But since X is interpreted as an integer, I don't think it'll work with microseconds. Try:

REPORT ztest MESSAGE-ID 00.

DATA: start   TYPE i,
      end     TYPE i,
      dif     TYPE i.

GET RUN TIME FIELD start.
WAIT UP TO '0.4' SECONDS.
GET RUN TIME FIELD end.

dif = end - start.

WRITE: /001 'Time for 0.4 second delay', dif, 'microseconds'.

GET RUN TIME FIELD start.
WAIT UP TO '0.5' SECONDS.
GET RUN TIME FIELD end.

dif = end - start.

WRITE: /001 'Time for 0.5 second delay', dif, 'microseconds'.

Rob

Message was edited by: Rob Burbank