Apply individual known times to a time lapse hyperstack

I have an initially very fast process that then slows down exponentially.
Initially I capture at a fast frame rate, then slow down and finally capture sparsely near the end of the measurement.
When the images were captured on known time intervals each frame can be related to a known time stamp.
I have a table of every frame when it was taken, can I somehow assign each frame this time information so [Image | Stacks | Z-axis profile] would have the correct time axis.
And if I later use a macro to process the stack, I could retrieve this timestamp information for every frame.

You can, e.g., assign the data to the label.

Here a small script to save information as label metadata for each slice (metadata will be preserved when saved as *.tif):

slices=nSlices;
for (i=1 ; i <= slices; i++) {
    setSlice(i);
    setMetadata("Label", "Time:"+i);
    
}

for (i=1 ; i <= slices; i++) {
    setSlice(i);
    print(getMetadata("Label"));
    
}

See also:

http://imagej.1557.x6.nabble.com/stack-macro-language-td3682949.html (Last answer)

http://imagej.1557.x6.nabble.com/Get-and-Set-Image-Properties-td3688417.html (answer Wayne)

And here a GUI plugin to visually set a label: