optimized 001 solution

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
rewrote cpp timer source parse
allows for extensibility and multiple functions

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>