CRset_timer_resolution: Set global resolution of Windows' timer.

Description Usage Arguments

Description

Sets global Windows' timer resolution using timePeriodBegin(). This function can be used to increase time resolution for timestamps returned by CRget_time() and CRrender_present(). Note that response timestamps are not affected by this function, since the OS determines resolution in this case. Note further that a call resout <- CRset_timer_resolution(resolution) should always be paired with a call CRreset_timer_resolution(resout) at a later point of the script to reset the timer resolution. Not resetting the timer's resolution increases CPU load and energy consumption.

Usage

1
    resout <- CRset_timer_resolution(resolution)

Arguments

resolution

a target reslution for the Windows' OS timer.


lorweiuk/CREx documentation built on May 30, 2019, 3:44 p.m.