mirror of
https://github.com/dlang/phobos.git
synced 2025-05-08 03:56:54 +03:00
Fixed: dmd die of the generation of the document.
This commit is contained in:
parent
08af0f5500
commit
cf4ff42933
1 changed files with 16 additions and 16 deletions
|
@ -841,24 +841,24 @@ unittest
|
|||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Scope base measuring time.
|
||||
*
|
||||
* When a value that is returned by this function is destroyed, FN will run.
|
||||
* FN is unaly function that requires Ticks.
|
||||
*
|
||||
* Excample:
|
||||
*------------------------------------------------------------------------------
|
||||
*writeln("benchmark start!");
|
||||
*{
|
||||
* auto mt = measureTime!((a){assert(a.seconds);});
|
||||
* doSomething();
|
||||
*}
|
||||
*writeln("benchmark end!");
|
||||
*------------------------------------------------------------------------------
|
||||
*/
|
||||
@safe
|
||||
{
|
||||
/***************************************************************************
|
||||
* Scope base measuring time.
|
||||
*
|
||||
* When a value that is returned by this function is destroyed, FN will run.
|
||||
* FN is unaly function that requires Ticks.
|
||||
*
|
||||
* Excample:
|
||||
*--------------------------------------------------------------------------
|
||||
*writeln("benchmark start!");
|
||||
*{
|
||||
* auto mt = measureTime!((a){assert(a.seconds);});
|
||||
* doSomething();
|
||||
*}
|
||||
*writeln("benchmark end!");
|
||||
*--------------------------------------------------------------------------
|
||||
*/
|
||||
auto measureTime(alias func)()
|
||||
if (isSafe!func)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue