Web3 DAO | HorizenOfficial Logo

Ensure Times Are Closed in Case of Early Exit

Organization

HorizenOfficial

Deadline

N/A

Status

LIVE


INSTRUCTIONS

Some computationally intensive operations rely on the start_timer/end_timer macros to print the execution time employed for such operations. Nonetheless, if an error occurs, such operations might end before calling the end_timer macro, which would leave side effects on the state of the macro, which might affect how the timings of other profiled operations run concurrently are displayed. Therefore, we would need to check each instance of start_timer to ensure that end_timer is always called for any possible execution flow.