responseEnd property

The responseEnd property must return the time immediately after the user agent receives the last byte of the current document or immediately before the transport connection is closed, whichever comes first. The document here can be received either from the server, relevant application caches, or from local resources.

Syntax

JavaScript

p = object.responseEnd

Property values

Type: Integer

An Integer value that represents the time immediately after the user agent receives the last byte of the current document or immediately before the transport connection is closed, whichever comes first.

Standards information

Remarks

The value reported by the responseEnd property represents the number of milliseconds between the recorded time and midnight January 1, 1970 (UTC).

This property is supported only for documents displayed in a Windows Store app using JavaScript. For more information, see Defining Document Compatibility.

Examples

The following example shows how to calculate the time required to receive a response from the hosting server.


var oTiming = window.performance.timing;
var iTimeMS = oTiming.responseEnd - oTiming.responseStart;

See also

performanceTiming
responseStart

 

 

Show:
© 2014 Microsoft