db.Entity.timer() function to test execution speed