Added performance timer class, changed code to use this instead. Currently milliseconds, but may update to a higher resolution later, or provide option.