Working with StopTimer result

Best practices, code snippets for common functionality, examples, and guidelines.
boegvald
Posts: 17
Joined: Wed Mar 13, 2019 9:02 am

Working with StopTimer result

Post by boegvald » Thu May 23, 2019 2:35 pm

I am trying to use the SystemLibrary and FileLibrary to log execution times for certain transactions into a csv file. Something like:

Code: Select all

1 User code		StartTimer			Timer1
2 Open browser...
3 User code		StopTimer 			Timer1
4 User code		AppendStringToExistingFile  	$Timer	MyLog.csv	True
I can't figure out how to get the value of Timer1 to $Timer (which I guess I need to in order to write the value to a log file).

Anyone knows?

Best Regards

Bo Bøgvald

boegvald
Posts: 17
Joined: Wed Mar 13, 2019 9:02 am

Re: Working with StopTimer result

Post by boegvald » Fri May 24, 2019 9:55 am

I found out (thanks to the content in this forum).... The result of StopTimer can be bound to a variable (right click on the StopTimer user code, properties).