Skip to content

Commit 779a2f3

Browse files
committed
trace execution time to stdout
1 parent a975113 commit 779a2f3

File tree

1 file changed

+6
-1
lines changed
  • ITS-commandline/fr.lip6.move.gal.itscl.application/src/fr/lip6/move/gal/itscl/application

1 file changed

+6
-1
lines changed

ITS-commandline/fr.lip6.move.gal.itscl.application/src/fr/lip6/move/gal/itscl/application/Application.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@ public class Application implements IApplication {
3737
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
3838
*/
3939
public Object start(IApplicationContext context) throws Exception {
40-
4140
String [] args = (String[]) context.getArguments().get(APPARGS);
4241

4342
List<String> listArgs = Arrays.asList(args);
4443
if (listArgs.contains("-pnfolder")) {
4544
return new fr.lip6.move.gal.application.Application().start(context);
4645
}
46+
47+
long startTime = System.currentTimeMillis();
48+
49+
4750
String inputff = null;
4851
String outputff = null;
4952
String inputType = null;
@@ -178,6 +181,8 @@ public Object start(IApplicationContext context) throws Exception {
178181

179182
Runner.runTool(timeout, cl);
180183

184+
System.out.println("Total execution time : " + (System.currentTimeMillis() - startTime) + " ms.");
185+
181186
return IApplication.EXIT_OK;
182187
}
183188

0 commit comments

Comments
 (0)