systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [systemml] ex00 commented on a change in pull request #862: Systemml 2526 Date.getTime() can be changed to System.currentTimeMillis()
Date Sat, 27 Apr 2019 22:18:55 GMT
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

Mime
View raw message