converted to a single function for rdtscp

Signed-off-by: James Paton <paton@cs.wisc.edu>