function executes callback at given time
creating stopwatch and test files