How to make template sensor with as_timestamp update regularly?

I think it is. There is entity_id variable - your sensor will update its state every time that entity changes state.
Not sure about using time directly, but if you create a input_boolean and an automation that toggles it every second (trigger: platform: time_pattern) and use that entity, it’ll do the trick

Or just read the second example here