EN
本內容沒有您的語言版本,但有英文版本。

Methods

This section describes the methods associated with timing and performance standards supported by a Windows Store app using JavaScript and Windows Store apps.

In this section

TopicDescription

cancelAnimationFrame

Cancels a requestAnimationFrame request.

clearImmediate

Cancels a function request created with setImmediate.

clearMarks

Removes marks and their associated time values.

clearMeasures

Removes measures and their associated values.

clearResourceTimings

Clears the current list of saved PerformanceEntry objects, if any.

getEntries

Returns an array of PerformanceEntry objects that report a series of recorded events in chronological order, based on startTime.

getEntriesByName

Returns an array of selected PerformanceEntry objects in chronological order, based on startTime.

getEntriesByType

Returns an array of selected PerformanceEntry objects in chronological order, based on startTime.

getMarks

Returns performance marks and their associated timing values.

getMeasures

Returns performance measures and their associated duration values.

mark

Records a performance mark, which is a time value associated with a name.

measure

Records a performance measure, which is the duration of time between two performance marks.

msWriteProfilerMark

Writes a profiling event.

now

Returns the number of milliseconds, accurate to a thousandth of a millisecond, from the start of document navigation to the time the now method was called.

requestAnimationFrame

Registers a function to call when the system is ready to update (repaint) the display.

setImmediate

Requests that a function be called when current or pending tasks are complete, such as events or screen updates.

setResourceTimingBufferSize

Sets the maximum number of PerformanceEntry objects tracked by the performance property.

 

 

 

顯示:
© 2014 Microsoft