diff options
author | phk <phk@FreeBSD.org> | 2003-12-08 20:49:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-12-08 20:49:40 +0000 |
commit | eb2af5051672cf64b9f8dff5455bd59ae9e0b1c4 (patch) | |
tree | a400eba665eb679ab2ed62dee8fe7df12f92aa2e /tools/test/ppsapi/README | |
parent | d24f4b67b9e600c2002cf0d82b20ce77347adfdb (diff) | |
download | FreeBSD-src-eb2af5051672cf64b9f8dff5455bd59ae9e0b1c4.zip FreeBSD-src-eb2af5051672cf64b9f8dff5455bd59ae9e0b1c4.tar.gz |
Add a small program to test/measure with the RFC 2783 API for timing
external signals.
Diffstat (limited to 'tools/test/ppsapi/README')
-rw-r--r-- | tools/test/ppsapi/README | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tools/test/ppsapi/README b/tools/test/ppsapi/README new file mode 100644 index 0000000..1460a5f --- /dev/null +++ b/tools/test/ppsapi/README @@ -0,0 +1,48 @@ +# $FreeBSD$ + +This is a small test program which I have had around since we wrote +the RFC 2783 API. + +Options: + -a capture assert flank + -c capture clear flank + (if neither -a -c: capture all available flanks) + -A output on assert flank + -C output on clear flank + (if neither -A -C: output on all flanks) + -e enable echo (all possible flanks) + -u unbuffered output. + -v verbose. + +The output looks like: + +# ./ppsapitest -C /dev/cuaa4 +1070915603 .703680117 119 1070915940 .902275676 121 +1070915941 .703657317 120 1070915941 .902327516 122 +1070915942 .703657077 121 1070915942 .902367957 123 +1070915943 .703657557 122 1070915943 .902419077 124 +1070915944 .703656717 123 1070915944 .902467197 125 +1070915945 .703657077 124 1070915945 .902527078 126 + +Columns: + + assert seconds (tv_sec) + assert nanoseconds (tv_nsec) + assert sequence number + clear seconds (tv_sec) + clear nanoseconds (tv_nsec) + clear sequence number + +(If the -C option had not been specified, twice as many lines would +be output: + +# ./ppsapitest /dev/cuaa4 +1070916432 .703624557 125 1070915945 .902527078 126 +1070916432 .703624557 125 1070916432 .902303156 127 +1070916433 .703624557 126 1070916432 .902303156 127 +1070916433 .703624557 126 1070916433 .902348396 128 +1070916434 .703625757 127 1070916433 .902348396 128 +1070916434 .703625757 127 1070916434 .902396877 129 +1070916435 .703623837 128 1070916434 .902396877 129 +1070916435 .703623837 128 1070916435 .902444277 130 + |