solution depends on the Xilinx device you're using, if you have a processor (i.e. ZYNQ) or not and if you have access to a SD-card or similar.
1.) run a timer and at event time store a time-stamp in a dual-port-buffer (block-RAM)
2.) read the buffer content by a processor (ARM on ZYNQ or MicroBlaze on other FPGAs) and store it on an SD-card. You need somehow a PC-compatible file system support (library) on your processor.