google / walt

A device for measuring latency of physical sensors and outputs on phones and computers
Apache License 2.0
442 stars 74 forks source link

Remove the use of synced clock in payer.c #65

Closed kamrik closed 7 years ago

kamrik commented 7 years ago

player.c uses the clock struct assuming it was synchronized via USB. In order to make it work with on ARC++ where synchronization is via TCP we need to switch to returning time in nanoTime() reference (same as CLOCK _MONOTONIC). And do the adjustment to WALT time in Java land.