Bloomberg Interview Question

Given constant integers x and t, write a function that takes no argument and returns true if the function has been called x number of times in last t secs. 6