Implement simple ptp clock also calculate round trip time and clock offset by ptp data.

- added crypto to the package.json.
- calculate round trip time and determain if it is usable.