Announcements
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.
@momolopu
Are you saying you need the seconds from the current 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.
Not fully sure what you are trying to achieve, but you can use Wait action to wait for 1 second and then increment variable by 1
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.
@ryule @LogicSmith If that would be great for me, would you be so kind to give me an example, I am quite new to this program. Thank you very much.
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.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 791
Valantis 568
Haque 535