From patchwork Thu Dec 3 12:49:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57647 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp3476832lbb; Thu, 3 Dec 2015 04:54:01 -0800 (PST) X-Received: by 10.55.192.22 with SMTP id o22mr10456121qki.12.1449147240692; Thu, 03 Dec 2015 04:54:00 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r66si6926024qkl.103.2015.12.03.04.54.00; Thu, 03 Dec 2015 04:54:00 -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 3E1C362C8E; Thu, 3 Dec 2015 12:54:00 +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_H2,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 C2CE762C9E; Thu, 3 Dec 2015 12:51:01 +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 2C3FF62CBA; Thu, 3 Dec 2015 12:50:56 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by lists.linaro.org (Postfix) with ESMTPS id 9596962C9E for ; Thu, 3 Dec 2015 12:49:54 +0000 (UTC) Received: by lbblt2 with SMTP id lt2so910702lbb.3 for ; Thu, 03 Dec 2015 04:49:53 -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=rMiaVax7KlFyk3xo5Tbuum2RFxWUEI+bAbnC2Zsm89X53oAU2oTaEJ5lHvfCvTpHmP I6SklQ4/V9Z831yemUDwI0WWaKbfYJzkb6VoW6i6kyQohUJsy9l2wxliaaQRsi5i4teC oGbAit+k9JkBZR2QNPZPZXA0X2r1vR1P52xY2N32qDqZWv4nIkyZq+CxhxT4uLar0R4Y fOiZkGL0LOTAtFAg9P11Q3Dt8nwMpMLdpm4TjLAe6Y8W9WcjV5D9uLHxbcwe2WZ9GZ0C 4OxcRCsVnGLijH5o01xs5dCIE9hVFiXzIcyUOOL6Xij2FuP9fFtmvyf8J2Mr1LvmITEw P82w== 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=NPLt8DWQf79wcYw0Uvpiv4MtvaD6y/xGRkuxM4FwVMwn0TcdK8HMtcSFkOgDpbwk3c wxiy2Xs+HZA/vkgxQsADwM/+wa5f6O1+pLxQ967nfmdQu9Rh4sJUwGj95/pqVV89x+nZ rw0wVL98bhkk6MNlmESH0LsjaXUCzFpoHrDppXtr45ZWYRj/BJjpwv+XoqBFhriOCeps Xk1AA3kTNAdtGYXEDYUeoPStxLfnrwFAfK2zWQ8yK4G1YjVdcBtjVn3DDHrk/nYG72/X mD4m90rdfvFGoKxbLK3bTZI61NmRTw8zpsdChwiVMcihF29Gzodx5oMP6+jsveKFh+p7 zKGQ== X-Gm-Message-State: ALoCoQmyXM/E/+PxLGbO8/ovwx6sZVqa+P+8AWq6rr5HFmZMJ5GqRXTvd5TqEvcK9SCI3QOYOzQk X-Received: by 10.112.204.168 with SMTP id kz8mr4869421lbc.32.1449146993473; Thu, 03 Dec 2015 04:49:53 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id l81sm1392459lfb.40.2015.12.03.04.49.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Dec 2015 04:49:52 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 3 Dec 2015 14:49:35 +0200 Message-Id: <1449146978-22222-7-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449146978-22222-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1449146978-22222-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v6] 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. */