This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![warn(clippy::all, clippy::pedantic, clippy::nursery)] | |
use flume::bounded; | |
use std::sync::mpsc::sync_channel; | |
use std::thread; | |
const NUM_DIVISORS: i64 = 2000; | |
fn main() { | |
// create a channel to dequeue work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/evhz.c b/evhz.c | |
index 3b4d0cf..c7ba33d 100644 | |
--- a/evhz.c | |
+++ b/evhz.c | |
@@ -118,13 +118,13 @@ int main(int argc, char *argv[]) { | |
unsigned long long time, timediff; | |
unsigned hz = 0; | |
- time = (unsigned long long)event.time.tv_sec * 1000ULL; | |
- time += (unsigned long long)event.time.tv_usec / 1000ULL; |
OlderNewer