.. index:: pair: group; Get current time .. _doxid-group__ptp-get__time: Get current time ================ .. toctree:: :hidden: 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 `__ .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * :ref:`env.peer2peer ` * - min_sleep - Minimum time to sleep between clock_gettime() calls, seconds * - max_sleep - Maximum time to sleep between clock_gettime() calls, seconds