Hello, can someone give me an example of how to save in a variable the real seconds that are passing please, I need it for a project.
Thank you very much for your time.
But it would not be to show only the seconds of the current date. It would be a variable that would start from 0 and would increase by 1 for each second that passes.
Thank you very much for your time, you help me a lot.
Yes, if I do that and put an execution delay of 1 ms and put it in a loop I increase +1 to the variable every second.
But is there any way to make it do that without getting stuck in a loop?
That is to say that it goes counting the seconds while it continues doing other things?
I don't know if I have explained myself a little strange hehe
I think the only way to achieve this would be to set a variable for start_time in the spot in the bot where you want it to start, and then set another variable for end_time, and then compare
Yes, Ryule is right. Assuming you want the answer to "how long did this take", the only way is to grab the time into a start time variable, then when you're done, grab the time into an end time variable, subtract the start from the end, and you can do that in seconds, minutes, whatever. I use this exact method to time how long some flows take to write to a log file.
@momolopu, looks like you want to have a continuous running time that will keep on ticking every second WHILE the other PAD actions keep running.
Something like a DoEvents in VBA...which will continue the events while the program is running.
Doesn't seem to have a similar feature in PAD...the execution stops until that action is completed. You can play around and see if you can achieve the same.
If you want to know how long something takes, I can provide code for that (3 actions). If you want something to happen every second, Power Automate is not the tool for that. Sorry.
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Attend in person or online, there are incredible conferences and events happening all throughout the month of September.