Running pace calculator widget/app

Is it possible to create a widget or an app that calculates pace/time/distance for running? With the functions like this iPhone app: https://itunes.apple.com/us/app/runpacecalc/id492038549?mt=8