From patchwork Fri Dec 4 17:51:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57717 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp702797lbb; Fri, 4 Dec 2015 09:55:56 -0800 (PST) X-Received: by 10.140.140.72 with SMTP id 69mr20778804qhm.60.1449251756757; Fri, 04 Dec 2015 09:55:56 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t130si13382186qhb.55.2015.12.04.09.55.56; Fri, 04 Dec 2015 09:55:56 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 69DDD62D6C; Fri, 4 Dec 2015 17:55:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3A38362D77; Fri, 4 Dec 2015 17:52:50 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B1CA062D77; Fri, 4 Dec 2015 17:52:46 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by lists.linaro.org (Postfix) with ESMTPS id 5484E62D6F for ; Fri, 4 Dec 2015 17:51:51 +0000 (UTC) Received: by lfdl133 with SMTP id l133so116485987lfd.2 for ; Fri, 04 Dec 2015 09:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ugBrqBZoeh/jIQbiMy9JPA11dD8qGyAOO65txgunaKs=; b=q3jRCym19XlYyYDbT/AAFBBJF7zRrL2Mp49HGtyzl3RprJkwiONQNVQ330x+Bk8XgC e9CUKi+uIPMmkBAf3ENAt4uhufpOp0lo5hnysREjLY2hfdo1EvLJMJw4TvlT5WPQoCoH DJNg8UyH/uCRhER+UwkjiaiBimqTqf5e6dY0OT7ooQdaOyWaPM2Qm4s7D5MEkmZGtHJ6 z8K3ZjLY1uKPN9ZgjIYi8coyxDehBBzQvhlQATg8SGy78pWwx7bvSrgCsC0PRFrmmPrO v1el5jDl+rGax2hQ97/A2PgPdjw9jNYOv2WnbQ4eF7VQ7hlayA99WujdpSas1Tge/YQ6 C8BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ugBrqBZoeh/jIQbiMy9JPA11dD8qGyAOO65txgunaKs=; b=Pz8S58JrMNedNfgOEBryfLiQh2vNRettewcwEVKYPUp7DFjiq0/ds/xB+kKg/p5mR+ 6YoNdQsnKftgY1rx3BnV9egrPQXOGDsFgYO21T9ggHMaoxcRrnybQN/mnc88zdXjcZoK aNeJFONBLSgdDmSNO1HKhREJuMEysFs70l9sXi24xTkl6IhY4tyT1P0ghhiZRtCmnTJD bnTtv7iKC0ibM1hUH01tnuzue3erG4CUYqh6znVOMaPizmk8necdX8fEW1MT0CY85QSn wfecb5w+hzg9G9iLtzajgKOmEGLt5bQR8U0arV0GW7XhKmDtaAiE+YVZ6gTjhnBtjteY adIw== X-Gm-Message-State: ALoCoQns/IJncvyGEj3UTR22CUpeQO7fXnSVw5oAHefAQlG/GbDyiuXuna842GAVk7pUbTyvaaxM X-Received: by 10.25.29.202 with SMTP id d193mr7446796lfd.55.1449251510175; Fri, 04 Dec 2015 09:51:50 -0800 (PST) Received: from localhost.localdomain ([212.90.60.8]) by smtp.gmail.com with ESMTPSA id rm5sm2483518lbb.20.2015.12.04.09.51.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Dec 2015 09:51:49 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Fri, 4 Dec 2015 19:51:31 +0200 Message-Id: <1449251494-23210-7-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449251494-23210-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1449251494-23210-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v7 6/9] api: time: make odp_local_time to be monotonic wall time X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" It's more convenient the local time to be a monotonic wall time. That means time starts from 0 and not wraps. It allows to use local time in similar manner as it's supposed to be used with global time and the 64-bit timer is enough to guarantee it. Reviewed-by: Petri Savolainen Signed-off-by: Ivan Khoronzhuk --- include/odp/api/time.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/odp/api/time.h b/include/odp/api/time.h index 50a0bf5..9865d81 100644 --- a/include/odp/api/time.h +++ b/include/odp/api/time.h @@ -45,7 +45,8 @@ extern "C" { * Current local time * * Returns current local time stamp value. The local time source provides high - * resolution time. + * resolution time, it is initialized to zero during ODP startup and will not + * wrap around in at least 10 years. * * @return Local time stamp. */