Stopwatch activation through digital output

I have no idea how to implement a timestamp.