added support for measuring used CPU time as well to execution time. Because CPU time is returned in nanoseconds, migrated the regular measurements also to nanoseconds. Patch provided by https://github.com/mirkonovakovic.