> For the complete documentation index, see [llms.txt](https://bharat-tiwari.gitbook.io/our-tech-journal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bharat-tiwari.gitbook.io/our-tech-journal/rxjs/debouncetime.md).

# throttle vs debounceTime

**throttle** is useful to filter multiple continuously happening event like `mouseDrag` to be captured at regular intervals of e.g. at every 2 seconds instead of continuously emitting the event.

**debounce** is useful when you want to capture the last or ultimate value of a continuously happening event like `mouseDrag` after the user stops `mousedrag` for at least certain amount of time like 2 secs or 500ms.
