From patchwork Tue Dec 1 15:01:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57500 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2232305lbb; Tue, 1 Dec 2015 07:05:48 -0800 (PST) X-Received: by 10.55.72.10 with SMTP id v10mr58971999qka.14.1448982347647; Tue, 01 Dec 2015 07:05:47 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a12si50536803qge.70.2015.12.01.07.05.43; Tue, 01 Dec 2015 07:05:47 -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 C55DD61E64; Tue, 1 Dec 2015 15:05:43 +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 CDA5C61E6B; Tue, 1 Dec 2015 15:02:19 +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 BB7E861E18; Tue, 1 Dec 2015 15:02:06 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by lists.linaro.org (Postfix) with ESMTPS id 963BA61E13 for ; Tue, 1 Dec 2015 15:01:57 +0000 (UTC) Received: by lfdl133 with SMTP id l133so11712185lfd.2 for ; Tue, 01 Dec 2015 07:01:56 -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=VoWPeGNoxJlZjS+WQzopMFg/Ae/IVhOefgkJWYrnRz0=; b=MNCVFMoGL3LROIWt0i1ZqfCJYxDsCTdJApE/7yK/SiS8WjULaKQsncXrlF6AiNYjf+ hORub0txFUMGJBN7WipWyEMPLzBIvumL74pVwLIkbm5sA4dhIoW1tvQ7Iivg8TxY+wOL 9YNWcSZaR9THDkZufaZ6yrVPAdC8b5m7CVO1x5YMO5zJgzttk/d3+ARqq7mTxKRwJe9H U6bCCf535oQGLmsci0q4Q5MJFskLyQ2pUD6KIr9K79z9eyIfuhmEsbYLhNmTMc5yCRIC Q4IVBRfx9qaRWEX6cM9OOWuH0gCPfwfNQ73zNTDdFKERc3pwbVjtlsSUJJ1kdS8ZgF/g K4sw== 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=VoWPeGNoxJlZjS+WQzopMFg/Ae/IVhOefgkJWYrnRz0=; b=mXMv0WObwFLocu4PRmaBf2U1JU/xQSOld+3/TvOkdRyLmXIM2ZjHXJ856a0RceAB4r O1ju160aiI587Y2A4VViJPmgGZp2+2cfcrEBJ2oazKWAuspU78Mc8q2y0DegcZZZDFfP MxqqRNpy0zfq01IasJwbTyeph73cKJMmYCs//i9LaqjRgn2CcfTYVW8ub83JkxjEqoM8 cwOOhMZMMY9a/2ankNWs5JFkP8+lY3vS3DwPyI1SJJzGwdMcbxpKMVm53V/YU8nom4Gs 8tC8ImGv40ZrYsV3l+hHessHq6LwE7Pl1PaY8ielJLd17c9zn9+MUpnK2OwKA8GqYIBu ubLA== X-Gm-Message-State: ALoCoQl0ra4+LTXQzP6EBWqzh4vrNmomv41axXGooo38JBNssQSu/YP9VBpuWqdvWFaUhkWBJvGD X-Received: by 10.112.77.194 with SMTP id u2mr13849979lbw.62.1448982116518; Tue, 01 Dec 2015 07:01:56 -0800 (PST) Received: from localhost.localdomain ([212.90.60.8]) by smtp.gmail.com with ESMTPSA id u12sm7995186lbk.45.2015.12.01.07.01.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Dec 2015 07:01:55 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Tue, 1 Dec 2015 17:01:22 +0200 Message-Id: <1448982084-8115-4-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448982084-8115-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1448982084-8115-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v4 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. 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. */