Re: [PATCH 3/9] wrapper: add sleep_nanosec
- From
Siddh Raman Pant <siddh.raman.pant@oracle.com>
- Date
- May 20, 2026, 07:07 UTC
- Message-ID
- <56552f593c7fed411af24413e4d3e77a34828451.camel@oracle.com>
- In-Reply-To
- <87qzn7q7qj.fsf@gitster.g>
On Wed, May 20 2026 at 05:20:44 +0530, Junio C Hamano wrote:
> The space above the signed-off-by line should be utilized to explain > why we want this change. For the purpose of this series, why do we > want to sleep at nanosecond precision?
The current time returned by getnanotime() is in nanoseconds which is used for deadline, so to avoid re-casting in helper code path we try to stay in nanosecond world. The caller can store in ns once and reuse it everytime.
Thanks, Siddh