The High-Resolution Timer

Introduction

This class provides some methods for high-resolution timing using performance counters.

Usage

To use this class, first call XTimer.Init to initialize the timer. Next, call XTimer.Begin to begin timing and XTimer.End to end timing. When you call XTimer.End, the elapsed time (in microseconds) is returned.