You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Peter Thygesen (JIRA)" <ji...@apache.org> on 2017/01/05 11:42:58 UTC

[jira] [Commented] (OPENNLP-137) Training cmd line tools should measure total training time

    [ https://issues.apache.org/jira/browse/OPENNLP-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15801149#comment-15801149 ] 

Peter Thygesen commented on OPENNLP-137:
----------------------------------------

How about just setting start time before and after the tool call in CLI.main() and then just display the durating in seconds?

E.g.

final long startTime = System.currentTimeMillis();
 ((TypedCmdLineTool) tool).run(formatName, toolArguments);
final long endTime = System.currentTimeMillis();
System.out.format("Durantion: %.3f%n seconds", (endTime-startTime)/1000000000.0);

> Training cmd line tools should measure total training time
> ----------------------------------------------------------
>
>                 Key: OPENNLP-137
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-137
>             Project: OpenNLP
>          Issue Type: Improvement
>          Components: Command Line Interface
>            Reporter: Joern Kottmann
>            Assignee: Peter Thygesen
>            Priority: Minor
>
> The command line tools for training a component should measure the total training time and output it at the end of the training.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)