Write a decorator that calculates the execution time of a function and displays it after the function is executed. Then, use this decorator for a function that creates a list from 1 to n.
- The number n that specifies the size of the list.
- The return value of the function (list 1 to n)
- The execution time of the function in seconds