You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Please add a timeDelta.totalMicroseconds procedure. One application would be for the generation of random seeds.
Is this issue currently blocking your progress?
No, because in arkouda we implemented our own timeDelta.totalMicroseconds procedure. However, it would be more efficient to call it from chapel.
Code Sample
use Time;
proctimeDelta.totalMicroseconds():int{
return ((days*(24*60*60) + seconds)*1_000_000+ microseconds):int;
}
var next: rng.eltType;
if hasSeed {
next = rng.next();
}else{
const seed = timeSinceEpoch().totalMicroseconds();
var randStream0 =new randomStream(rng.eltType, seed);
next = randStream0.next();
}
The text was updated successfully, but these errors were encountered:
…6798)
[reviewed by @DanilaFe and @bradcray]
Resolves#26658
Note that the implementation for totalMicroseconds is strongly based on
the suggestion from ajpotts, so credit to it should go to her and the
Arkouda team.
Updated some tests and a module that were converting the result of
totalSeconds to microseconds so that they use the new method instead.
Added a test of the new methods.
Passed a standard paratest with futures and a performance run of
`test/studies/ssca2` looked to be at the same granularity for the units
printed out.
Hi @ajpotts - I just merged #26798, which adds support for this and totalMilliseconds(). Thanks for the feature request and let me know if there's anything else along these lines you'd be interested in seeing (I opened #26820 for totalNanoseconds but that will be a more involved adjustment, since we don't store nanoseconds today)
Summary of Feature
Description:
Please add a
timeDelta.totalMicroseconds
procedure. One application would be for the generation of random seeds.Is this issue currently blocking your progress?
No, because in arkouda we implemented our own
timeDelta.totalMicroseconds
procedure. However, it would be more efficient to call it from chapel.Code Sample
The text was updated successfully, but these errors were encountered: