# mdelay **Repository Path**: owlnight/mdelay ## Basic Information - **Project Name**: mdelay - **Description**: 测试节点之间时延 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-14 - **Last Updated**: 2025-04-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mdelay (shortcut to measure the delay) ## 文件说明 - `rx_timestamping.c` 来自项目 [hw-timestamping](https://github.com/ArneVogel/hw-timestamping) - `sender.c` 根据 [hw-timestamping](https://github.com/ArneVogel/hw-timestamping) 中的 rust-packets 用C语言重写 - `check_clock.c` 来自 https://tsn.readthedocs.io/timesync.html#checking-clocks-synchronization 提供的下载,用于检查PHC(网卡时钟)、CLOCK_REALTIME(UTC系统时钟),CLOCK_TAI(原子系统时间)之间的offset情况。 - 使用方法:`gcc tool/check_clock.c -o check_clock`,`sudo ./check_clock -d eno0 -v` - `set_tai_offset.c` 貌似要内核编译的时候开启支持才行,当前测试改变不了offset