Measure CPU used by the sample processing thread.
This commit is contained in:
parent
4732ad3498
commit
7a0ca85a90
4 changed files with 28 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue