• Alexis SALZMAN's avatar
    [xTool] make xNoDeltaTime works + test case · 487ba92c
    Alexis SALZMAN authored
    xNoDeltaTime class was bugged. Now this class is ok and rigorously having the
    same API as xDeltaTime class.
    
    With this class that cost nothing (all call to instance method
    are optimized out by compiler) we can now consider to let monitoring
    instruction to stay in the middle of the code. No more dirty macros are
    needed around those instructions. Only at creation time the instance
    created is either a xNoDeltaTime or a xDeltaTime object (and macro if
    necessary appears only at this level)
    
    A small atomic test case check that xNoDeltaTime do not cost anything.
    
    Be careful to not encapsulated  a xNoDeltaTime or a xDeltaTime object
    into a std::function. You would alleviate all the effort to make
    xNoDeltaTime to cost nothing. Because std::function itself do cost and
    keeping monitoring instructions in the code would then degrade
    performances.
    487ba92c
Name
Last commit
Last update
Trellis Loading commit data...
xAnalyticalSolution Loading commit data...
xCrack Loading commit data...
xCut Loading commit data...
xDomainDecomp Loading commit data...
xExport Loading commit data...
xExt Loading commit data...
xFEM Loading commit data...
xFastMarching Loading commit data...
xGeom Loading commit data...
xGraph Loading commit data...
xInterface Loading commit data...
xLinAlg Loading commit data...
xMapping Loading commit data...
xMeshTool Loading commit data...
xOctree Loading commit data...
xPhysics Loading commit data...
xQuadrature Loading commit data...
xTLS Loading commit data...
xTensor Loading commit data...
xTool Loading commit data...
xUtil Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
Ext_dependence.dot Loading commit data...
LICENSE.md Loading commit data...
README.md Loading commit data...
Xfiles_dependence.dot Loading commit data...