printing time

Kendrick, Stuart Stuart.Kendrick at emc.com
Thu Aug 28 20:19:42 UTC 2014


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).
>
>



More information about the freebsd-dtrace mailing list