Hamsters in captivity are nocturnal, and since they should be sleeping during the day, leave the treating until sunset. Your hamster will appreciate it more when they are awake and happy.