Measure CPU used by the sample processing thread.

This commit is contained in:
Oliver Jowett 2014-09-29 23:04:58 +01:00
parent 4732ad3498
commit 7a0ca85a90
4 changed files with 28 additions and 1 deletions

View file

@ -57,6 +57,7 @@
#include <ctype.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <time.h>
#include "rtl-sdr.h"
#include "anet.h"
#else
@ -387,6 +388,8 @@ struct { // Internal state
unsigned int stat_blocks_processed;
unsigned int stat_blocks_dropped;
struct timespec stat_cputime;
} Modes;
// The struct we use to store information about a decoded message.