setup query time tracking