You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@systemml.apache.org by GitBox <gi...@apache.org> on 2019/04/27 22:18:55 UTC

[GitHub] [systemml] ex00 commented on a change in pull request #862: Systemml 2526 Date.getTime() can be changed to System.currentTimeMillis()

ex00 commented on a change in pull request #862: Systemml 2526 Date.getTime() can be changed to System.currentTimeMillis()
URL: https://github.com/apache/systemml/pull/862#discussion_r279170106
 
 

 ##########
 File path: src/main/java/org/apache/sysml/api/mlcontext/MLContext.java
 ##########
 @@ -334,7 +334,7 @@ public MLResults execute(Script script, ScriptExecutor scriptExecutor) {
 		try {
 			executionScript = script;
 
-			Long time = new Long((new Date()).getTime());
+			Long time = new Long(System.currentTimeMillis());
 
 Review comment:
   I suggest, better to move `time` variable to `if` block, because it uses only for setting script name

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services