Commit graph

23 commits

Author SHA1 Message Date
Dennis
d4a1354f31
Remove flakey stopwatch test (#10628) 2025-01-22 05:00:11 +08:00
Iain Buclaw
352258539c Fix 'the the' typos in Phobos documentation 2022-09-20 21:31:46 +02:00
Adam D. Ruppe
ae93f5317c Use consistent quickindex wrapper around hand-written list-of-links tables 2020-02-21 21:04:05 -05:00
drug007
0f54e79ea2 datetime symbols deprecation schedule updated 2020-02-14 15:29:14 +03:00
Berni
36ac5614ef Fix issue 20145 - Random unittest failures in std.datetime.stopwatch 2019-09-17 16:23:51 +02:00
Nathan Sashihara
27257d1413
Revert "Add dontOptimizeAway to std.datetime.stopwatch" 2018-06-13 16:19:17 -04:00
The Dlang Bot
e257ce133a
Merge pull request #5416 from wilzbach/dontoptimizeaway
Add dontOptimizeAway to std.datetime.stopwatch
merged-on-behalf-of: unknown
2018-06-13 20:07:09 +02:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Sebastian Wilzbach
6f1bb469ef Fix Issue 18704 - std/datetime/stopwatch.d(452) assertion failure on auto-tester 2018-04-05 07:14:20 +02:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
25c3ef46af Fix Issue 18593 - std.datetime.stopwatch.benchmark shouldn't optimize away its functions 2018-03-11 22:47:21 +01:00
Jonathan M Davis
cb2bbe1b7c Fix issue with benchmark unit test when compiling with optimizations.
Apparently, with gdc and optimizations turned on, the test in question
is optimized enough that the first function being benchmarked sometimes
takes no time at all (since the function being benchmarked does
nothing), causing the test to fail. This fixes that.
2018-03-11 14:12:19 -06:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
Nathan Sashihara
2806ae5e8b Issue 18398 - std.datetime.stopwatch documented examples could be better (x2)
Workaround for documentation bug from Issue 16992
2018-02-11 07:49:36 -05:00
Nathan Sashihara
602c3ede71 Issue 18398 - std.datetime.stopwatch documented examples could be better 2018-02-08 08:24:27 -05:00
Sebastian Wilzbach
6fcd737163 Issue 18345 - add bookmark tables to std.datetime 2018-02-03 21:05:34 +01:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Jonathan M Davis
85704a5f6e Improve module documentation for std.datetime.stopwatch.
This should make it clearer how to deal with the problems created by
having deprecated symbols in std.datetime.package that conflict with the
ones in std.datetime.stopwatch.
2017-10-03 16:52:04 -06:00
Jonathan M Davis
9b5da5a3ca Fix the indentation on some ddoc comments. 2017-10-03 16:18:02 -06:00
Jonathan M Davis
d35c934560 Deprecate old benchmarking functions in std.datetime. 2017-10-03 16:18:02 -06:00
Vladimir Panteleev
50bdbff3fe std.datetime.stopwatch: Fix another random test failure on Win32 2017-05-17 00:13:56 +00:00
Vladimir Panteleev
6dbcf46413 std.datetime.stopwatch: Fix random test failure on Win32 2017-05-15 04:26:12 +00:00
Jonathan M Davis
ac62197c36 Add the MonoTime equivalents of std.datetime.StopWatch/benchmark.
std.datetime.package has StopWatch, benchmark, comparingBenchmark, and
measureTime, all of which use TickDuration (which would be deprecated,
but it can't be deprecated as long as those functions in std.datetime
are deprecated). This commit introduces
std.datetime.stopwatch to replace those functions in std.datetime. In
order to avoid symbol conflicts, std.datetime.stopwatch will not be
publicly import in std.datetime.package until the old symbols have been
removed.

std.datetime.experimental.stopwatch contains StopWatch and benchmark
which have essentially the same APIs as the ones in
std.datetime.package, but they use MonoTime and Duration.

comparingBenchmark has not been ported to MonoTime and Duration, because
it is simply a wrapper around benchmark.

measureTime has not been ported to MonoTime and Duration, because it is
equivalent to using StopWatch with a scope(exit) statement.

The old functionality will be deprecated the major release after the new
symbols have been introduced.
2017-05-07 10:54:25 +02:00