improved cpp timer parse
added extensibility and multi-function support

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