hidutils / hid-recorder

A utility to record HID data from /dev/hidraw devices
MIT License
1 stars 4 forks source link

Print the current time every 5 seconds #37

Closed whot closed 1 month ago

whot commented 1 month ago

Instead of every 5 seconds after start time, print the current time on the clock every 5 seconds (i.e. at :00, :05, :10, etc.). Poll now times out after 1 second now, allowing us to process the time if nothing else happened. Theoretically we should timeout every 500ms to ensure we definitely print the real second but meh.