Get current time

Check that current time can be obtained from PTP device associated with the tested network interface.

Scenarios: X3-PTP002.

  1. Find out PTP device associated with the IUT interface, call open() to get its FD.

  2. Call clock_gettime() with PTP device FD to get the first timestamp.

  3. Sleep for a while.

  4. Call clock_gettime() with PTP device FD to get the second timestamp.

  5. 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