The alternative to buying a cycling computer is downloading an app on your smartphone and using that to record your riding data. The most popular apps used worldwide are Strava, MapMyRide, Runtastic, and so on.
Smartwatches are a great way to track your progress too.