timestamp func as parameter