The heartbeat is configured for 2 seconds. The heartbeat controls many elements of a player or monster, including determining whether to regenerate, decay buffs/debuffs, etc and also controls combat routines.