From owner-freebsd-dtrace@FreeBSD.ORG Thu Aug 28 20:19:42 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B7E1A4E for ; Thu, 28 Aug 2014 20:19:42 +0000 (UTC) Received: from mailuogwdur.emc.com (mailuogwdur.emc.com [128.221.224.79]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mailuogwprd51.lss.emc.com", Issuer "RSA Corporate Server CA v2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF8191B9E for ; Thu, 28 Aug 2014 20:19:41 +0000 (UTC) Received: from maildlpprd55.lss.emc.com (maildlpprd55.lss.emc.com [10.106.48.159]) by mailuogwprd53.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s7SKJcjX009295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 28 Aug 2014 16:19:39 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd53.lss.emc.com s7SKJcjX009295 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emc.com; s=jan2013; t=1409257179; bh=NgFHfSn6AQfQbVqTdqEOrdTyE9Q=; h=From:To:CC:Date:Subject:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=O/FHjQSHIG7F1MZFDwQgSqVnn5YOTNiTvjP051N65shmSP59FGW0+g2q3Fu50sYAJ MAiEz1Ya3OUrBFMHO/Eo3+0r8vFEqVzonU7HQP/MoQ1BVV2Vhkv1Ql5rwUCMiXUQGZ Na16Y7Jdi/Dh4dLQy+0ge7v4L9Y/ZiBh3/RaOPlw= X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd53.lss.emc.com s7SKJcjX009295 Received: from mailusrhubprd03.lss.emc.com (mailusrhubprd03.lss.emc.com [10.253.24.21]) by maildlpprd55.lss.emc.com (RSA Interceptor); Thu, 28 Aug 2014 16:19:15 -0400 Received: from mxhub16.corp.emc.com (mxhub16.corp.emc.com [128.222.70.237]) by mailusrhubprd03.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s7SKJMK9030433 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 28 Aug 2014 16:19:23 -0400 Received: from mx30a.corp.emc.com ([169.254.1.101]) by mxhub16.corp.emc.com ([128.222.70.237]) with mapi; Thu, 28 Aug 2014 16:19:22 -0400 From: "Kendrick, Stuart" To: Ryan Stone Date: Thu, 28 Aug 2014 16:21:10 -0400 Subject: Re: printing time Thread-Topic: printing time Thread-Index: Ac/C/VrDxosuYg5lR/KtfA+rmFNZAw== Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.3.140616 acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd03.lss.emc.com X-RSA-Classifications: DLM_1, public Cc: "freebsd-dtrace@freebsd.org" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 20:19:42 -0000 In fact, printf(=B3%Y =8A\n=B2, timestamp =8A.); will give me a timestamp w= hich looks like 1970 Jan 1 + uptime, and that will meet my needs for the moment. Thank you for the idea. =8Bsk > >Do you need wall clock time, or do you just need relative timestamps >to other dtrace prints? timestamp works in all FreeBSD versions and >you can print it as a simple int. The counter is given in nanoseconds >(I believe that it's specifically the number of nanoseconds since >boot, but don't quote me on that). > >