b2108839b0
Stopwatch (in the way it is used) must be able to measure the wall clock time with high resolution but used clock() which is not appropriate for this purpose: On POSIX systems clock() returns the processor time used by the program. On Windows clock() does measure the wall clock time but has only a resolution of 1ms (if at all). This also renders the freerdp profiler unusable. This commit changes stopwatch to use the performance counters on Windows and gettimeofday() for the rest. Also added a warning about invalid profiling results to the RemoteFX codec if rfxcontext->priv->UseThreads is enabled because stopwatch is currently not used in a thread safe way. Also see GitHub Issue #1325 |
||
---|---|---|
channels | ||
client | ||
cmake | ||
cunit | ||
docs | ||
external | ||
include | ||
libfreerdp | ||
resources | ||
scripts | ||
server | ||
third-party | ||
winpr | ||
.gitignore | ||
ChangeLog | ||
CMakeLists.txt | ||
config.h.in | ||
freerdp.pc.in | ||
freerdp.spec | ||
LICENSE | ||
README |
FreeRDP: A Remote Desktop Protocol Implementation ================================================= FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Enjoy the freedom of using your software wherever you want, the way you want it, in a world where interoperability can finally liberate your computing experience. Resources --------- Project website: http://www.freerdp.com/ Issue tracker: https://github.com/FreeRDP/FreeRDP/issues Sources: https://github.com/FreeRDP/FreeRDP/ Wiki: https://github.com/FreeRDP/FreeRDP/wiki Downloads and other resources: http://pub.freerdp.com API doc: http://pub.freerdp.com/api/ IRC channel: #freerdp @ irc.freenode.net Mailing list: https://lists.sourceforge.net/lists/listinfo/freerdp-devel Microsoft Open Specifications ----------------------------- Information regarding the Microsoft Open Specifications can be found at: http://www.microsoft.com/openspecifications/ A list of reference documentation is maintained here: https://github.com/FreeRDP/FreeRDP/wiki/Reference-Documentation Compilation ----------- Instructions on how to get started compiling FreeRDP can be found on the wiki: https://github.com/FreeRDP/FreeRDP/wiki/Compilation