Sleeping takes 1000x longer than it should because the timestamps are interpreted as microseconds by accident.