Hacker News new | ask | show | jobs
by StavrosK 3126 days ago
I use floats because it's most natural to represent duration in time. Nanoseconds are going to be about as lossy as floats too, I guess (although for a different reason). If you're going for maximum accuracy, you'd need to represent the duration as the number of samples.

I wonder if floats are going to be a significant problem, hmm.