fix for data type problem in metrics

- moved to long for all the counts
- stayed at double for memory and runtime but converted results to KB and ms