Solaborate interview question

Write a function to create a timer (staring time, ending time)