Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 425C010A87 for ; Thu, 7 May 2015 08:29:27 +0000 (UTC) Received: (qmail 59942 invoked by uid 500); 7 May 2015 08:29:27 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 59897 invoked by uid 500); 7 May 2015 08:29:27 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 59887 invoked by uid 99); 7 May 2015 08:29:27 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2015 08:29:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9DA1FC2149 for ; Thu, 7 May 2015 08:29:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.971 X-Spam-Level: X-Spam-Status: No, score=0.971 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id AnD6_pc-kj5j for ; Thu, 7 May 2015 08:29:25 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 3FFA54750D for ; Thu, 7 May 2015 08:04:00 +0000 (UTC) Received: (qmail 6752 invoked by uid 99); 7 May 2015 08:03:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2015 08:03:59 +0000 Date: Thu, 7 May 2015 08:03:59 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-1974) JobExecutionResult NetRuntime - document result type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14532206#comment-14532206 ] ASF GitHub Bot commented on FLINK-1974: --------------------------------------- Github user tillrohrmann commented on a diff in the pull request: https://github.com/apache/flink/pull/652#discussion_r29831647 --- Diff: flink-core/src/main/java/org/apache/flink/api/common/JobExecutionResult.java --- @@ -47,12 +48,23 @@ public JobExecutionResult(JobID jobID, long netRuntime, Map accu * Gets the net execution time of the job, i.e., the execution time in the parallel system, * without the pre-flight steps like the optimizer. * - * @return The net execution time. + * @return The net execution time in milliseconds. */ public long getNetRuntime() { return this.netRuntime; } + /** + * Gets the net execution time of the job, i.e., the execution time in the parallel system, + * without the pre-flight steps like the optimizer in a desired unit. + * + * @param desiredUnit the unit of the NetRuntime + * @return The net execution time in the desired unit. + */ + public long elapsedNetRuntime(TimeUnit desiredUnit) { --- End diff -- None that I can remember. I agree that the higher resolution is better even though if your jobs take only some milliseconds to run, then you probably need not to use Flink ;-) So lets change it to milliseconds. > JobExecutionResult NetRuntime - document result type > ---------------------------------------------------- > > Key: FLINK-1974 > URL: https://issues.apache.org/jira/browse/FLINK-1974 > Project: Flink > Issue Type: Improvement > Components: Documentation > Affects Versions: 0.9 > Environment: The JobExecutionResult stores the net execution times in milliseconds, but does not say so. > A simple fix is to add it to the JavaDoc .. a more complete fix would be to change the method name to getNetRuntimeMs or even use an auto conversion, such as getElapsedNetRuntime(Timeunit) which would autoconvert > Reporter: Johannes > Assignee: Johannes > Priority: Trivial > Labels: easyfix > -- This message was sent by Atlassian JIRA (v6.3.4#6332)