Take sample as tuple (timestamp,cputime) to be more precise when computing

The threaded timer is not very precised in time so we must take the
timestamp when sampling cputime from domain (I could also be reused
later to have a stat database for domains).