Forum Discussion
rraghvani
2 years agoChampion Level 3
For example,
function Split()
{
// Peform click here
const t1 = aqDateTime.Time();
Log.Message("First button clicked at: " + aqConvert.DateTimeToStr(t1));
aqUtils.Delay(3000);
// Peform click here
const t2 = aqDateTime.Time();
Log.Message("Second button clicked at: " + aqConvert.DateTimeToStr(t2));
var diff = t2 - t1;
Log.Message("Time difference between clicks: " + diff);
}
- nedbacan2 years agoFrequent Contributor
rraghvani, thank you for your help.
Sorry, but I am trying to understand your approach, how do I get the object that is being clicked in your code, for instance
1) My first button to click is Fetchbtn.Click()
2) My second button to click is Savebtn.Click()
I ran your example .....
aqConvert.DateTimeToStr(t1))
It gave me 1899 instead of my system clock 2023. Also, any way to show time in seconds instead of ms.
Related Content
- 7 years ago
- 6 years ago
- 11 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago