Water 5-Software Life-cycle-Testing
method test.time_it
Contract
Return typewob
Parameter keyDefault valueType
count1integer
Parameter kindDefault valueType
Other unkeyed argumentsreq with ekind of expressionwob
Water Contract
<method test.time_it
  count=1=number.integer
  _other_unkeyed=req=wob=ekind.expression="_body"/>
Executes the content and returns the number of milliseconds that the execution took. If you want to test read-time, then call execute_string in the content of time_it times_to_execute specifies the number of times to execute the content. Note that times that are under 100 milliseconds or so are more highly variable than longer times for no apparent reason, they just seem to vary randomly, though its rare that two runs of any amount of time will be within 1% of each other. Calling time_it with a high times_to_execute produces a time that is slightly less than what you would expect from testing with lower times_to_execute.
test.<time_it times_to_execute=100> 2.<plus 3/> </>