Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2011-04-06 18:04:09
Size: 748
Editor: SheenaSmith
Comment: update content - w/ Sam
Revision 5 as of 2011-04-06 18:04:47
Size: 746
Editor: SheenaSmith
Comment: minor change
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
These counter values are only meaningful relative to each other. Differences between values can be converted to times by using [[SDL_GetPerformanceFrequency]](). The counter values are only meaningful relative to each other. Differences between values can be converted to times by using [[SDL_GetPerformanceFrequency]]().

SDL_GetPerformanceCounter

Use this function to get the current value of the high resolution counter.

Syntax

Uint64 SDL_GetPerformanceCounter(void)

Return Value

Returns the current counter value.

Code Examples

You can add your code example here

Remarks

This function is typically used for profiling.

The counter values are only meaningful relative to each other. Differences between values can be converted to times by using SDL_GetPerformanceFrequency().


CategoryAPI, CategoryTimer

None: SDL_GetPerformanceCounter (last edited 2011-04-06 18:04:47 by SheenaSmith)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit