---
title: "Discussion on \"Flask decorator to measure time taken for a request\" | Hashnode"
description: "Discussion on \"Flask decorator to measure time taken for a request\". In the previous articles on the Python decorator series, we have learnt decorators, how they work and to implement a simple function based decorator and a class based decorator and decorator that supports parameters. In this article, we will use flas..."
url: "https://hashnode.com/posts/flask-decorator-to-measure-time-taken-for-a-request/60e5b737e9aeb8301a6a9ee2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Flask decorator to measure time taken for a request](https://sureshdsk.dev/flask-decorator-to-measure-time-taken-for-a-request?utm_source=hashnode&utm_medium=feed)

In the previous articles on the Python decorator series, we have learnt decorators, how they work and to implement a simple function based decorator and a class based decorator and decorator that supports parameters. In this article, we will use flas...

Jul 7, 2021 · 2 min read · sureshdsk.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#flask](https://hashnode.com/tag/flask)
-   [#python3](https://hashnode.com/tag/python3)

## Written by

[Suresh Kumar](https://hashnode.com/@sureshdsk)

@sureshdsk · Chennai

  
[View profile](https://hashnode.com/@sureshdsk)

Passionate Software Engineer | Python | Postgres | Kubernetes

## Responses 2

Markdown supported · ⌘↵ to post

[Rohit Das](https://hashnode.com/@therohitdas)

[Aug 26, 2024](https://hashnode.com/posts/flask-decorator-to-measure-time-taken-for-a-request/60e5b737e9aeb8301a6a9ee2/comment/66cc10f7bc03b6fbece703fb)

thanks man. any idea how to print cache hit/miss when using flask caching?

[Pechi Muthu A](https://hashnode.com/@Pechi77)

[Jul 7, 2021](https://hashnode.com/posts/flask-decorator-to-measure-time-taken-for-a-request/60e5b737e9aeb8301a6a9ee2/comment/60e5ea99d534931b99a4f1f2)

Awesome :) more flask post please

[Suresh Kumar](https://hashnode.com/@sureshdsk)

[Jul 8, 2021](https://hashnode.com/posts/flask-decorator-to-measure-time-taken-for-a-request/60e5b737e9aeb8301a6a9ee2/comment/60e5ea99d534931b99a4f1f2#reply-60e6b251c32fbd1b73720ca1)

Thanks. Will keep it balanced with other topics :)
