This file contains hidden or 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 hidden or 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; |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Copyright 2025 Amine Hassane | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
OlderNewer