Thoreau mostly uses imagery to illustrate time in the excerpt. The second sentence is saying that he is in the midst of time/living, and he can "detect how shallow it is," meaning that he is aware that life is short and that the end is inevitable. Thoreau also describes time as being fleeting, but ever-present.
I hope this helps!
Answer:
Metaphor
<h2>What is a metaphor?</h2>
A figure of speech in which a term or phrase is applied to something to which it is not literally applicable in order to suggest a resemblance, as in "A mighty fortress is our God."
In the sentence, "My son is a greyhound out of the blocks when it's hometime," the son is being compared to this because of how fast he runs to get home.
Hence, the technique used in the phrase, "My son is a greyhound out of the blocks when it's hometime" is a metaphor.