Time measurement example in userspace