A
A
Axelertortt2015-07-13 14:21:52
FreeBSD
Axelertortt, 2015-07-13 14:21:52

What is the difference between bintime() and nanotime() (FreeBSD)?

Can anyone explain what is the difference between nanotime(9) and bintime(9) if the return value of bintime(struct bintime) can be converted (bintime2timespec) to nanotime(timespec)? Thanks for the answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
athacker, 2015-07-13
@Axelertortt

bin result in struct bintime containing seconds and 64-bit fractions of seconds.
nano result in struct timespec containing seconds and nanoseconds
So it looks like it can be converted, but with loss of precision.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question