Fix timing functions demo