I have 6 batch files each making a curl request. I want to run those files asynchronously. Now, I want to calculate the time taken by all the scripts. i.e. time elapsed between starting the scripts until the time last one finishes. I have used 'START' command to run the batch scripts from a parent script. Here is how the parent scripts looks like :
ECHO Start Measure %Time% >> timer.txt
start curl-1.bat
start curl-2.bat
start curl-3.bat
start curl-4.bat
start curl-5.bat
start curl-6.bat
ECHO Stop measure %Time% >> timer.txt
But the times that are registered are just the times at the point of those %Time% statements are executed. I believe this is because, 'START' command starts separate shells and the called scripts don't return back.
Using 'CALL' command will not let me make asynchronous calls. Hence, that option rules out. Can anyone suggest a way to achieve this?