The scope of a resource limit that restricts elapsed time is either a query batch or transaction. For more information, see “Determining the scope of resource limits”.