fix timeconst compile deprecated error