You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joseph Wu (JIRA)" <ji...@apache.org> on 2015/08/19 23:47:45 UTC

[jira] [Created] (MESOS-3299) Add a protobuf to represent time with integer precision.

Joseph Wu created MESOS-3299:
--------------------------------

             Summary: Add a protobuf to represent time with integer precision.
                 Key: MESOS-3299
                 URL: https://issues.apache.org/jira/browse/MESOS-3299
             Project: Mesos
          Issue Type: Task
            Reporter: Joseph Wu
            Assignee: Joseph Wu


Existing timestamps in the protobufs use {{double}} to encode time.  Generally, the field represents seconds (with the decimal component to represent smaller denominations of time).  This is less than ideal.

Instead, we should use integers, so as to not lose data (and to be able to compare value reliably).

Something like:
{code}
message Time {
  int64 seconds;
  int32 nanoseconds;
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)