summaryrefslogtreecommitdiff
path: root/docs/timing.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/timing.rst')
-rw-r--r--docs/timing.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/timing.rst b/docs/timing.rst
index 8608db0..d077aa4 100644
--- a/docs/timing.rst
+++ b/docs/timing.rst
@@ -70,6 +70,11 @@ be sent to the statsd server.
myfunc(1, 2)
myfunc(3, 7)
+.. warning:
+ Decorators are not thread-safe and may cause errors when decorated
+ functions are called concurrently. Use context managers or raw timers
+ instead.
+
Using a Timer object directly
=============================