Which is more evil?
public MyReturnClass<ILikeGenerics> doSomethingAndTimeIt1(MyClass parameter) {
    long startTime = System.currentTimeMillis();

    MyReturnClass<ILikeGenerics> result =
        doSomethingComplicatedHere(parameter, this.someInstanceVariable);

    log.debug("Took " + (System.currentTimeMillis() - startTime) + "ms");
    return result;
}

public MyReturnClass<ILikeGenerics> doSomethingAndTimeIt2(MyClass parameter) {
    long startTime = System.currentTimeMillis();

    try {
        return doSomethingComplicatedHere(parameter, this.someInstanceVariable);
    } finally {
        log.debug("Took " + (System.currentTimeMillis() - startTime) + "ms");
    }
}
From:
Anonymous
OpenID
Identity URL: 
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org


 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.
.

Profile

spudtater: (Default)
spudtater

Most Popular Tags

Powered by Dreamwidth Studios

Style Credit

Expand Cut Tags

No cut tags