Example: lr.get_attrib_double

In the following example, lr.get_attrib_double retrieves the value of the time parameter from the command line string

test1   -host sun2   -loop 4   -time 1.5

where test1 is the name of the executable and host, loop and time are command line options. lr.get_attrib_double assigns the value to a variable, wait_time. This variable is incorporated into the script and sets how long to wait between loops.

    double wait_time;
    int i; 
   if (wait_time==0){
        lr.message("Illegal time value \n");