Ethereal-dev: Re: [ethereal-dev] NFS dissector continued

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Thu, 4 Nov 1999 23:20:49 -0800
> * How should I print times of files? NFS v2 uses a microsecond resolution and
> NFS v3 a nanosecond one. I would prefer a generic time print routine.

We currently have a field type FT_ABSOLUTE_TIME; however, it expects the
data to be a "struct timeval", which has only microsecond resolution.

I'd be inclined to have it use an internal-to-Ethereal structure with
nanosecond resolution, and have callers that want to record
microsecond-resolution time do the multiplication by 1000 themselves. 
(That could also be used for other time stamps, with the disadvantage
that it won't offer the ability to look at the individual components of
the time stamp, and the advantage that we could support filtering on
those time stamps.)