-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unify timestamps #16
Comments
Ad time units - I would go with simplest form, i.e. not configurable. Nanoseconds are probably fine as it is the default resolution nowadays ( Ad baseline value - thinking out loud: |
|
|
Sounds like (d), just that the header timestamp is not necessarily defined to be the start of measurement, which may have some merit - just call it (Or, a wild idea, probably without practical use: have a separate |
OK, so let's conclude what shall be done (according to seemingly consensus):
|
I think we are over-complicating it. It already sounds like something designed by a committee! What about this:
And be done with it? Of course names can be discussed to death. The "start_time_unix" can be optional. |
Or wait for it. The initial timestamp could be an ISO string instead of ill-defined unix timestamp :-) |
I don't see the use-case for having a separate start of measurement (relative to baseline), so I'd rather keep it simple and just have the baseline in the header.
Again, I'd keep it simple. JSON is not for really meant viewing / human consumption. Having a readable time format is a display feature and it's something the processing tools should take care of. IMO adding time formatting complexity to all the generator tools (written in C/C++, lua, rust, go or who knows what) isn't worth a "nice" value in the header. |
I agree, I was just trolling with even more complex proposal. Are we agreement then? Something stupidly simple as #16 (comment)? |
There is a mess in various absolute and relative timestamps throughout the schema. There are two main questions with several options:
time units used:
a. nanoseconds
b. microseconds
c. configurable by time_units_per_sec in the header
baseline for absolute timestamps (e.g. "since" and "until" in the interval results):
a. 1970-01-01
b. start of measurement
c. whatever random timestamp that might be anything but fixed for the whole measurement (aka CLOCK_MONOTINIC)
d. like b. with the start of measurement relativized to 1970-01-01 in the header
e. like c. with the "anything" relativized to 1970-01-01 in the header
In 1), I personally vote for b. (usecs). In 2), I have no strong preference, possibly c. is OK for me.
The text was updated successfully, but these errors were encountered: