Add function to read CPU timestamp counter.

Also, Fix clean build target