Skip to content

Commit 9f39e3e

Browse files
committed
document NANOSECONDS_PER_BASIC_BLOCK
1 parent 3b69f69 commit 9f39e3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shims/time.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use rustc_data_structures::sync::Ordering;
66
use crate::concurrency::thread::Time;
77
use crate::*;
88

9+
/// When using a virtual clock, this defines how many nanoseconds do we pretend
10+
/// are passing for each basic block.
911
const NANOSECOND_PER_BASIC_BLOCK: u64 = 10;
1012

1113
/// A monotone clock used for `Instant` simulation.

0 commit comments

Comments
 (0)