Implement timer_wrap binding.