using system timer
added C translation of system timer