support time duration
update demo