Add Clock implementation

There is simple clock, which use timer0. Global variable g_clock
contains current time.

Signed-off-by: darkenk <darkenk@gmail.com>