Time and memory profiling library