Highlighted
Absent Member.
Absent Member.
157 views

Incorrect Syntax

Hi

What is wrong i am writing here...Thanks

time_elapsed=lr_end_timer(timer);
if (time_elapsed<1)
{
TimetoWait=1- time_elapsed
lr_think_time("&TimetoWait")
0 Likes
4 Replies
Highlighted
Established Member..
Established Member..

Hi Dinesh,

What syntax error you are facing?

~Ajay
0 Likes
Highlighted
Absent Member.
Absent Member.

Try this out

merc_timer_handle_t timer;
double time_elapsed,TimetoWait;

timer=lr_start_timer();


time_elapsed=lr_end_timer(timer);
if (time_elapsed<1)
{
TimetoWait=1- time_elapsed;
lr_think_time(TimetoWait);
}

Let me know if it works. I guess you were wrong using the pointer instead of the variable directly.

Thanks
Prashanth Thimmavajjala
0 Likes
Highlighted
Absent Member.
Absent Member.

Does this 1 mean 1 second here? I want it for 1 seond.

Dinesh
0 Likes
Highlighted
Absent Member.
Absent Member.

Yes, the time is in seconds and here 1 refers to 1 sec.

Thanks
Prashanth T
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.