I wonder how to code the lag compensation trick because current_time is a local variable (it depends on when the client has started his OS).