Re: [PATCH v2 6/7] trace2: add stopwatch timers
- From
- Jeff Hostetler <git@jeffhostetler.com>
- Date
- Oct 20, 2022, 14:42 UTC
- Message-ID
- <aeb07c4f-f3f2-4965-6b6b-3ba3b10b2103@jeffhostetler.com>
- In-Reply-To
- <xmqq8rlje8cu.fsf@gitster.g>
On 10/13/22 5:12 PM, Junio C Hamano wrote:
Show 5 quoted lines
> "Jeff Hostetler via GitGitGadget" <gitgitgadget@gmail.com> writes: > >> From: Jeff Hostetler <jeffhost@microsoft.com> >> >> Add stopwatch timer mechanism to Trace2.
[...]
Show 6 quoted lines
> It was irritating to count zeros in the same constant 1000000000.0 > spelled out 9 times. Perhaps something like > > #define NS_TO_SECONDS(ns) ((double)(ns) / (1000*1000*1000.)) > > would have helped?
good point. i'll resend.
thanks jeff