fixed errs in ls.cpp and timer.h