changes
This commit is contained in:
@ -131,6 +131,8 @@ void initCounter() {
|
||||
}
|
||||
|
||||
int main (void) {
|
||||
static uint32_t lastDiff = 0;
|
||||
|
||||
init();
|
||||
initCounter();
|
||||
|
||||
@ -139,8 +141,10 @@ int main (void) {
|
||||
pthread_cond_wait(&eventSignal, &eventMutex);
|
||||
pthread_mutex_unlock(&eventMutex);
|
||||
|
||||
double f = 1.0 / (((double) diff) / 1000000.0);
|
||||
|
||||
printf("%d %d %d %f\n", ec, counter, diff, f);
|
||||
if (diff != lastDiff) {
|
||||
lastDiff = diff;
|
||||
double f = 1.0 / (((double) diff) / 1000000.0);
|
||||
printf("%d %d %d %f\n", ec, counter, diff, f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user