concept give time interval in category sql

This is an excerpt from Manning's book SQL Server DMVs in Action: Better Queries with Dynamic Management Views.
Table 2.1. Common terms and their meaning
The DMV sys.dm_os_wait_stats is useful for discovering the cumulative effect of the causes of waiting since SQL Server was last rebooted, restarted, or cleared programmatically. But being cumulative, it doesn’t record trend or discreet time interval information. You can use the DMV snapshot approach given in chapter 2 (“Common patterns”) to determine the specific waits that occur when you run a given SQL query or batch of SQL or indeed to determine the waits over a given time period. This should allow you to highlight, and target for investigation and improvement, any waits that occur while you’re running specific SQL queries or for a given time interval.
You can determine how the performance counters change over a given time period by calculating the difference between two DMV snapshots, taken at the start and end of a time interval. Running the SQL script given here will show how the performance counters change over the given time interval. In this example, the time period is five minutes; you may want to alter this time interval to suit your needs.