FreeRDP/include/freerdp/utils
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
..
bitmap.h include: add various missing extern C decls. 2013-01-29 14:45:49 +08:00
debug.h Replace printf(...) by fprintf(stderr, ...) 2013-03-28 23:06:34 +01:00
event.h freerdp: merge RDP_EVENT type with wMessage 2013-03-28 21:13:56 -04:00
list.h include: add various missing extern C decls. 2013-01-29 14:45:49 +08:00
msusb.h libfreerdp-utils: purge old STREAM utils 2013-03-21 16:45:25 -04:00
passphrase.h include: add various missing extern C decls. 2013-01-29 14:45:49 +08:00
pcap.h include: add various missing extern C decls. 2013-01-29 14:45:49 +08:00
profiler.h Fixed compilation with -Wstrict-prototypes 2013-02-14 22:20:43 +01:00
rail.h libfreerdp-utils: purge old STREAM utils 2013-03-21 16:45:25 -04:00
signal.h include: add various missing extern C decls. 2013-01-29 14:45:49 +08:00
stopwatch.h utils: fix broken stopwatch implementation 2013-06-27 13:00:54 +02:00
svc_plugin.h freerdp: merge RDP_EVENT type with wMessage 2013-03-28 21:13:56 -04:00
tcp.h Fixed compilation with -Wstrict-prototypes 2013-02-14 22:20:43 +01:00
time.h Fixed compilation with -Wstrict-prototypes 2013-02-14 22:20:43 +01:00
uds.h include: add various missing extern C decls. 2013-01-29 14:45:49 +08:00