ticktime as a parameter