Date: Thu, 28 Aug 2014 16:21:10 -0400 From: "Kendrick, Stuart" <Stuart.Kendrick@emc.com> To: Ryan Stone <rysto32@gmail.com> Cc: "freebsd-dtrace@freebsd.org" <freebsd-dtrace@freebsd.org> Subject: Re: printing time Message-ID: <D024DCBF.1553D%stuart.kendrick@emc.com> In-Reply-To: <CAFMmRNzy_gSi8duNVoh4rRGVV=c=UHPdxXWhXyHaLURZPp-AMg@mail.gmail.com> References: <D0249056.15458%stuart.kendrick@emc.com> <CAFMmRNzy_gSi8duNVoh4rRGVV=c=UHPdxXWhXyHaLURZPp-AMg@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
In fact, printf(³%Y Š\n², timestamp Š.); will give me a timestamp which looks like 1970 Jan 1 + uptime, and that will meet my needs for the moment. Thank you for the idea. ‹sk > >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). > >home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D024DCBF.1553D%stuart.kendrick>
