STOPWATCH

From iMacros

Jump to: navigation, search

Measures the time in seconds between two STOPWATCH commands with the same identifier.

This command can be used for website response time measurement. Using different IDs in one macro different processes can be timed separately from each other. By default the measured data is stored in the download directory of iMacros. You can change the file location with the !FILESTOPWATCH variable. (PRO and SCRIPTING Editions only).

Contents

Syntax iMacros Browser IE Plug-in Firefox

STOPWATCH ID=id

Parameters

  • ID
    Specifies an unique identifier for a timing measurement. Up to 100 different identifiers can be used.

Examples

VERSION BUILD=4230323  
SET !FILESTOPWATCH mydata.csv     
STOPWATCH ID=total 
URL GOTO=http://www.iopus.com/iim/       
STOPWATCH ID=1   
TAG POS=1 TYPE=A ATTR=HREF:http://www.iopus.com/iim/compare 
STOPWATCH ID=1 
STOPWATCH ID=store    
TAG POS=1 TYPE=A ATTR=TXT:US$<SP>149    
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:order ATTR=NAME:ORDER_PRODUCT_NOW&&VALUE:Order<SP>Now   
TAG POS=1 TYPE=A ATTR=HREF:http://www.iopus.com/store 
STOPWATCH ID=store 
STOPWATCH ID=total 

The file "mydata.csv" contains the measurement data. By default the data is saved to the Downloads\ directory of your iMacros installation. The values are comma separated (CSV format) so they can be viewed with any text editor or imported directly in Excel or any other software you use to view your data.

Example file Format: Date, Time, Macro name, ID, time (s)

"2004/08/3","11:56:23","mymacro","1","1.272" 
"2004/08/3","11:56:32","mymacro","store","8.943" 
"2004/08/3","11:56:32","mymacro","total","10.21" 

See Also

REFRESH, CLEAR