clock gives the amount of time since <start of program>.
time gives the amount of time since <Jan 1 1970>.
For your purposes, they are therefore equivalent, as in if you search-and-destroy clock with time, and remember that your answer is in milliseconds, then you're done.