aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnetz/cnetz.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-02-01 17:57:09 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:02:46 +0100
commit5f1d7bc9705cf31f55cd802ba616f42a92da3618 (patch)
treef7499635b3dc9f5e4119b3991d757ed87554922b /src/cnetz/cnetz.h
parent54ed5d5f822f64a12cdc06abfaddf4cb18bfa560 (diff)
C-Netz: Improve clock speed measurements.
Sound card's clock measurements only requires a few minutes to get sub-ppm accuracy results.
Diffstat (limited to 'src/cnetz/cnetz.h')
-rw-r--r--src/cnetz/cnetz.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cnetz/cnetz.h b/src/cnetz/cnetz.h
index 01fcc9c..b5295fe 100644
--- a/src/cnetz/cnetz.h
+++ b/src/cnetz/cnetz.h
@@ -50,12 +50,11 @@ struct clock_speed {
double meas_ti; /* time stamp for measurement interval */
double start_ti[4]; /* time stamp for start of counting */
double last_ti[4]; /* time stamp of last received time */
- uint64_t spl_count[4]; /* sample counter for sound card */
+ double spl_count[4]; /* sample counter for sound card */
/* making average of measurement values */
- double speed_ppm_rx[2][256]; /* history of clock speed measurements */
- double speed_ppm_tx[2][256];
- int idx; /* index of current value */
- int num; /* total num of values so far */
+ double speed_ppm[4][256]; /* history of clock speed measurements */
+ int idx[4]; /* index of current value */
+ int num[4]; /* total num of values so far */
};
/* instance of cnetz sender */