A man has been sentenced to up to 28 years in prison for beating a bicyclist to death in North Carolina last year.