When exactly does ACR Cloud timestamp?

Does ACR Cloud timestamp when it first detects a new song or after it has recognized it? Our music programmers would like to know. Thanks!