RISC-V timer-related functionality
read the mtime register
mtime
get current time in microseconds
set the next timer interrupt