Added helper to get high resolution time. Added benchmark for A*. Closes #338.