]> git.uio.no Git - ifi-stolz-refaktor.git/commitdiff
printing statement
authorAnna <sowhow@gmail.com>
Wed, 27 Apr 2016 13:55:06 +0000 (15:55 +0200)
committerAnna <sowhow@gmail.com>
Wed, 27 Apr 2016 13:55:06 +0000 (15:55 +0200)
software/no.uio.ifi.refaktor/src/no/uio/ifi/refaktor/handlers/entrypoints/RefactorHandler.java

index 41435ec724f46b23d0c9a16ba4e507340c4e2ffe..13dca4e3d4caebd190979f1c9c9211d9cdbe9e00 100644 (file)
@@ -1,5 +1,7 @@
 package no.uio.ifi.refaktor.handlers.entrypoints;
 
+import java.util.Date;
+
 import org.eclipse.core.commands.AbstractHandler;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
@@ -47,14 +49,14 @@ public abstract class RefactorHandler extends AbstractHandler{
                
                try {
                        changer.refactor(new NullProgressMonitor());
-                       MessageDialog.openInformation(window.getShell(), "no.uio.ifi.refaktor", changer.getClass() + " has been excuted: " + System.currentTimeMillis());
+                       MessageDialog.openInformation(window.getShell(), "no.uio.ifi.refaktor", changer.getClass() + " has been excuted: " + (System.currentTimeMillis()-startTime)%1000);
                        return null;
                } catch (RefaktorChangerException e) {
                        RefaktorDebug.log(e);
                } catch (CoreException e) {
                        RefaktorDebug.log(e);
                }finally{
-                       RefaktorDebug.log("finished executing: " + (System.currentTimeMillis()-startTime) + " millisec");
+                       RefaktorDebug.log("finished executing: " + (System.currentTimeMillis()-startTime)%1000 + " sec");
                }
                
                MessageDialog.openInformation(window.getShell(), "no.uio.ifi.refaktor", changer.getClass() + " did not execute correctly");