<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by raggsac: Hi, is there someone that nows how to implement a self-made function (C++)in LoadRunner. I want my function to get called within lr_think_time() paranthesis..?
In order to do this you would need access to the lr_think_time function. I believe this is in a dll and you would need to decompile it, add you changes or function call, and then recompile it. Not sure that is legal. Do not believe Mercury would be to happy if they found out.
where user_wait_func is your own function that returns and integer. Then you should be able to create this like any other function. If you are creating a lot of code then it may be worth creating a dll but if it is small then just create it within the script.
If however you want lr_think_time to do something else ??. You can use a wrapper function. call it My_think_time(int a) then within this function you can do what you want. You can call lr_think_time before or after or repeatedly during your own code.