From patchwork Tue Dec 1 15:08:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57507 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2240286lbb; Tue, 1 Dec 2015 07:16:41 -0800 (PST) X-Received: by 10.140.102.226 with SMTP id w89mr84198244qge.44.1448983001423; Tue, 01 Dec 2015 07:16:41 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c67si50471272qha.80.2015.12.01.07.16.41; Tue, 01 Dec 2015 07:16:41 -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 114A8610AD; Tue, 1 Dec 2015 15:16:41 +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 7439861FB3; Tue, 1 Dec 2015 15:11:41 +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 47C9B61E6B; Tue, 1 Dec 2015 15:11:34 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by lists.linaro.org (Postfix) with ESMTPS id 2A1B261E8B for ; Tue, 1 Dec 2015 15:08:28 +0000 (UTC) Received: by lfdl133 with SMTP id l133so12006819lfd.2 for ; Tue, 01 Dec 2015 07:08:27 -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=ZmeW+lNj6r9CLD3JiZrHEQKnI4RXQRiRlNT8mw+gTgQgbr+Esx9NrJ3xsmno2Ed+sl ot+c7yAEOGPzo1+a8AHrLvlxBwmoPcdI4ClxEo5xhkLSXwkp3toRw1W5qltGtpWgmF+m svpyobdSh5DioTIrMVGAugg2+zrpgXyJO/aaK1FGYjii4/TkOQAZdlN/pc1nuN9AdS+4 4Zf8+yhnSkbOsq7rxP1gnQUj+zrCG0+JkrhtQEEGAg/RTznK+imDEl5zmuOqDMNRLqaV EXiQ5//fOc59SrQvdFaZ/xMruA1XgXL4RiICcRox/jvffjwVmb0Gjl1tPHGhL5qSfrcx /k1w== 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=i45fMSmMKbM40wY5BPCJgAjI621n5EOV8/oDLDZAx1MknptOWK5Tp3MhE84fenoW4M tsvdK8owCgzQIT3BgjP35Q/xaRsu/wweIkvJh8AqZOT7dKybM3eooNTS9IFP8MiYVkBK 3H/hwbnEdsh0pxfnNqDNZVISKPu2Z39clSviuNTJlOrYSqp9yFgI/OmtH2bmIWurhuM0 LO2CYiF47V6zo6hgrc+6LXA8lJNV4i5QtKAf83vW6xrlNkgHY88Ch8Y2qdlXt+DqK2GV iT59qhvp2FvLZBKfms2Ra+l/+OkBlowcgfU91kPoBmbXQJz6NYPEi1Z0d9zDdsXpUXdw gW6w== X-Gm-Message-State: ALoCoQm4Ew3Pw/38M5XrZtTUVlYlMHu7exSHUdz0UTyDyAsiBj6NdlnLD0HqDjH5Pu9LClyRlw9c X-Received: by 10.112.172.231 with SMTP id bf7mr21864925lbc.5.1448982507095; Tue, 01 Dec 2015 07:08:27 -0800 (PST) Received: from localhost.localdomain ([212.90.60.8]) by smtp.gmail.com with ESMTPSA id i194sm8278535lfg.20.2015.12.01.07.08.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Dec 2015 07:08:26 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Tue, 1 Dec 2015 17:08:10 +0200 Message-Id: <1448982493-8236-7-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448982493-8236-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1448982493-8236-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v5 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. */