There is also http://linux.die.net/man/2/sched_setaffinity if you want to
do it programmatically.
On Thu, 23 Jul 2015 16:43:01 +, Clayton wrote:
On Wednesday, 22 July 2015 at 09:32:15 UTC, John Colvin wrote:
On Wednesday, 22 July 2015 at 09:23:36 UTC, Clayton wrote:
[...]
The normal way of doing this would be using std.datetime.StopWatch:
StopWatch sw;
sw.start();
On Thursday, July 23, 2015 13:59:11 Steven Schveighoffer via
Digitalmars-d-learn wrote:
On 7/22/15 5:23 AM, Clayton wrote:
How does one represent Duration in only Micro-seconds, or milliseconds.
Trying to measure the execution time of an algorithm and I get 4 ms,
619 μs, and 8 hnsecs , I
On Wednesday, 22 July 2015 at 09:32:15 UTC, John Colvin wrote:
On Wednesday, 22 July 2015 at 09:23:36 UTC, Clayton wrote:
[...]
The normal way of doing this would be using
std.datetime.StopWatch:
StopWatch sw;
sw.start();
algorithm();
long exec_ms = sw.peek().msecs;
Am
On 7/22/15 5:23 AM, Clayton wrote:
How does one represent Duration in only Micro-seconds, or milliseconds.
Trying to measure the execution time of an algorithm and I get 4 ms,
619 μs, and 8 hnsecs , I want to sum all these and get total hnsecs or
μs .
I would also appreciate advise on whether
On Wednesday, 22 July 2015 at 09:32:15 UTC, John Colvin wrote:
On Wednesday, 22 July 2015 at 09:23:36 UTC, Clayton wrote:
[...]
The normal way of doing this would be using
std.datetime.StopWatch:
StopWatch sw;
sw.start();
algorithm();
long exec_ms = sw.peek().msecs;
Much
How does one represent Duration in only Micro-seconds, or
milliseconds. Trying to measure the execution time of an
algorithm and I get 4 ms, 619 μs, and 8 hnsecs , I want to sum
all these and get total hnsecs or μs .
I would also appreciate advise on whether this is the best way
to measure
On Wednesday, 22 July 2015 at 09:23:36 UTC, Clayton wrote:
How does one represent Duration in only Micro-seconds, or
milliseconds. Trying to measure the execution time of an
algorithm and I get 4 ms, 619 μs, and 8 hnsecs , I want to
sum all these and get total hnsecs or μs .
I would also