Ethernet Timestamps Sample
Samples demonstrate how to write code using certain features. They are not performance benchmarks. The output examples shown here are for illustration only. Your output may vary.
The Ethernet timestamps sample (
tcc_ethernet_timestamps_sample
) is a self-contained example program that demonstrates the time synchronization quality improvements between the system clock (CLOCK_REALTIME) and a Precision Time Protocol Hardware Clock (PHC) on Intel® hardware platforms. The sample uses a Time-Aware GPIO (TGPIO) pin to generate single pulses and the pulse per second (PPS) pin of a network controller to generate periodic signals that are used to evaluate time synchronization precision.File Locations
After installing the Intel® TCC Tools package on the target system, you can find sample sources and binaries in the following directories:
Target system:
- Sample sources:/usr/share/tcc_tools/samples/tcc_ethernet_timestamps_sample
- Sample binaries:/usr/bin
Source Files
File | Description |
---|---|
src/main.c | Main file containing the sample |
Learn More
Read more about this sample and run the examples: