time_interval compiles but does not work