input: TimeStamp: Fallback to CLOCK_MONOTOMIC if available

On some machines no clock is precise enough to have 1ms resolution
(notably small ARM machines). This commit makes the TimeStamp to
fallback to CLOCK_MONOTONIC to have at least some timestamps.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>