profiling duration now working in example, need to add tests