Return the amount of virtual time elapsed in this runtime.
(&self)
| 155 | |
| 156 | /// Return the amount of virtual time elapsed in this runtime. |
| 157 | pub fn elapsed(&self) -> Duration { |
| 158 | self.executor.elapsed() |
| 159 | } |
| 160 | |
| 161 | /// Get a cloneable handle for spawning tasks and accessing runtime services. |
| 162 | pub fn handle(&self) -> Handle { |