http://mbed.org/users/AkinoriHashimoto/code/myTimer/#2f7a8e62597a