use array to replace vector in log, add const prefix for timer's function