<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17306</bug_id>
          
          <creation_ts>2012-06-04 13:47:10 +0000</creation_ts>
          <short_desc>The initial value of timestamp is not defined</short_desc>
          <delta_ts>2013-03-22 14:22:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Gamepad</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olli Pettay">bugs</reporter>
          <assigned_to name="Scott Graham">scott.w3bugzilla</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>scott.w3bugzilla</cc>
    
    <cc>ted</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68569</commentid>
    <comment_count>0</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-06-04 13:47:10 +0000</bug_when>
    <thetext>What should be the value of .timestamp when Gamepad object is
first time used?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68577</commentid>
    <comment_count>1</comment_count>
    <who name="Ted Mielczarek [:ted]">ted</who>
    <bug_when>2012-06-04 16:47:01 +0000</bug_when>
    <thetext>It should probably be the timestamp from when the connected event happened. (When the gamepad was first exposed to script.)

We should probably clarify what the values of .timestamp are. I think we have two sane options:
1) Equivalent to Date.now(), milliseconds since the epoch (limited time resolution depending on platform).
2) Equivalent to the High Resolution Time spec&apos;s DOMHighResTimeStamp values. (fractional milliseconds since page load):
http://www.w3.org/TR/2012/WD-hr-time-20120313/#sec-DOMHighResTimeStamp Better resolution + spec&apos;ed to be monotonic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68589</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Graham">scott.w3bugzilla</who>
    <bug_when>2012-06-04 19:20:00 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; It should probably be the timestamp from when the connected event happened.
&gt; (When the gamepad was first exposed to script.)
&gt; 
&gt; We should probably clarify what the values of .timestamp are. I think we have
&gt; two sane options:
&gt; 1) Equivalent to Date.now(), milliseconds since the epoch (limited time
&gt; resolution depending on platform).
&gt; 2) Equivalent to the High Resolution Time spec&apos;s DOMHighResTimeStamp values.
&gt; (fractional milliseconds since page load):
&gt; http://www.w3.org/TR/2012/WD-hr-time-20120313/#sec-DOMHighResTimeStamp Better
&gt; resolution + spec&apos;ed to be monotonic.

I think DOMHighResTimeStamp would be best to coordinate with audio, rAF, etc. I will update if there&apos;s no objection to that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68592</commentid>
    <comment_count>3</comment_count>
    <who name="Ted Mielczarek [:ted]">ted</who>
    <bug_when>2012-06-04 20:43:34 +0000</bug_when>
    <thetext>That sounds fine to me. I see you already made a change to reference the HighRes Time spec, but don&apos;t forget to actually fix the subject of this bug while you&apos;re at it. :) (defining the default value of .timestamp)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68610</commentid>
    <comment_count>4</comment_count>
    <who name="Ted Mielczarek [:ted]">ted</who>
    <bug_when>2012-06-05 00:35:36 +0000</bug_when>
    <thetext>Also, looks like HRTIME needs to get added to the Biblio DB, respec is complaining about that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84840</commentid>
    <comment_count>5</comment_count>
    <who name="Ted Mielczarek [:ted]">ted</who>
    <bug_when>2013-03-22 14:22:08 +0000</bug_when>
    <thetext>Cleaned this up a little more:
https://dvcs.w3.org/hg/gamepad/rev/27b047265c4d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>