Breaking a laser sensor.

But is there any way to do this clock timing with software?

Yes, but you'll have to manually reset the time every time you turn the Arduino on.