mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-26 19:17:52 +00:00
Added ability to query how long since the new interval was set to the timed event loop. Discovered that LCM will returning the net effect of the common factors only. Otherwise continued iterating towards time preservation.
This commit is contained in:
@@ -32,5 +32,5 @@ unsigned int NumberTheory::least_common_multiple(unsigned int a, unsigned int b)
|
||||
if(a == b) return a;
|
||||
|
||||
unsigned int gcd = greatest_common_divisor(a, b);
|
||||
return (a / gcd) * (b / gcd);
|
||||
return (a / gcd) * (b / gcd) * gcd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user