Get current time
Check that current time can be obtained from PTP device associated with the tested network interface.
Scenarios: X3-PTP002.
Find out PTP device associated with the IUT interface, call open() to get its FD.
Call clock_gettime() with PTP device FD to get the first timestamp.
Sleep for a while.
Call clock_gettime() with PTP device FD to get the second timestamp.
Check that difference between the obtained timestamps corresponds to the delay between clock_gettime() calls.
Yurij Plotnikov Yurij.Plotnikov@arknetworks.am
Parameters:
env |
Testing environment: |
min_sleep |
Minimum time to sleep between clock_gettime() calls, seconds |
max_sleep |
Maximum time to sleep between clock_gettime() calls, seconds |