Github user ottobackwards commented on the issue:

    https://github.com/apache/commons-lang/pull/311
  
    I did think of that at the start.  There were two issues for me:
    
    1. I didn't want to expose the internal node to the caller and complicate 
the interface
    2. In my scenario ( a language engine, that *might* be timing things in the 
repl or *might not* be timing things at runtime in a storm topology, there may 
not be a watch at all, so having:
    
    if(context.WatchOptional.isPresent())(
    try(xxxxxx){
    TIMED_FUNCTION()
    }
    } else {
    TIMED_FUNCTION()
    }
    
    didn't seem as clean.


---

Reply via email to