diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/unistd.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index d406efe8..ed3b753a 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -1670,10 +1670,11 @@ pub mod alarm { //! sigaction(Signal::SIGALRM, &sa); //! } //! + //! let start = Instant::now(); + //! //! // Set an alarm for 1 second from now. //! alarm::set(1); //! - //! let start = Instant::now(); //! // Pause the process until the alarm signal is received. //! let mut sigset = SigSet::empty(); //! sigset.add(Signal::SIGALRM); |