I want to inject a timestamp in my existing flow after every 10 seconds

We don't know what flow you are using, but do you have your inject node set to Repeat at a set interval?

How to post your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

See this post for more details - How to share code or flow json