FreeRDP/libfreerdp
Norbert Federa b2108839b0 utils: fix broken stopwatch implementation
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
2013-06-27 13:00:54 +02:00
..
cache Replace printf(...) by fprintf(stderr, ...) 2013-03-28 23:06:34 +01:00
codec utils: fix broken stopwatch implementation 2013-06-27 13:00:54 +02:00
common libfreerdp-common: add some null pointer checks. 2013-06-20 14:13:57 +08:00
core Merge pull request #1292 from bmiklautz/issue_1229 2013-06-26 05:49:16 -07:00
crypto freerdp: merge with master 2013-06-05 10:31:01 -04:00
gdi fixed incorrect size calculation 2013-06-20 11:29:18 -07:00
locale libfreerdp-locale: fix C++ header 2013-04-28 20:16:04 -04:00
primitives freerdp: fix monolithic build with Intel IPP linking 2013-05-16 14:45:49 -04:00
rail Replace printf(...) by fprintf(stderr, ...) 2013-03-28 23:06:34 +01:00
utils utils: fix broken stopwatch implementation 2013-06-27 13:00:54 +02:00
CMakeLists.txt freerdp: fix monolithic build with Xcode 2013-05-24 18:38:02 -04:00
dummy.c freerdp: fix monolithic build with Xcode 2013-05-24 18:38:02 -04:00