scheduler: use proper inttype for runtime, use import instead of declaration, rename to runtime_ticks

define runtime long as hwtimer_now() uses long
import hwtimer.h instead of declaring hwtimer_now()
rename runtime to reflect the unit of measurement