On Thu, Sep 09, 2021 at 12:29:17PM +0200, nsaenzju@xxxxxxxxxx wrote: > > I'm also wondering the diff between the two methods on arm64 and whether > > there's a huge difference on the numbers. > > There isn't much, after rounding the end result in MHz is the same regardless > of the method used. IIUC, gettimeoftheday() uses the frequency register's value > to scale the counter measurements. So it makes sense for the results to be > coherent. > > I figured it's cleaner to get the data from the source instead of inferring it > with extra math. Fair enough. Thanks, -- Peter Xu