Direct measurement of Lyapunov exponents