Created
February 7, 2017 14:12
-
-
Save zo0m/d02f209d704bc5d9dff15ded754fc20a to your computer and use it in GitHub Desktop.
logAndDif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logAndDif = (text, compareWithMoment)-> | |
currM = Alloy.Globals.Moment(); | |
Ti.API.info "#{text} : #{currM.format 'HH:mm:sss.SSS' } - #{if compareWithMoment then currM.diff(compareWithMoment) else '-'}" | |
currM | |
startSetupMoment = logAndDif("start") | |
logAndDif("transformed", startSetupMoment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment