Setting time period programmably

how can we convert this fixed period to programmable:
#10
t.clock=~t.clock;