Add function to get the current value of systick

The k20 example app doesn't use an interrupt, so it needs the systick
value.