Use Powershell
Measure-Command {start-process whateveryouwantexecute -Wait}
Edited to your need @efficiencylsBliss:
Measure-Command {start-process java -argumentlist "whateverargumentisneeded" -wait}
Use Powershell
Measure-Command {start-process whateveryouwantexecute -Wait}
Edited to your need @efficiencylsBliss:
Measure-Command {start-process java -argumentlist "whateverargumentisneeded" -wait}