Added a seperate library for simple timing functions, looks much cleaner.