Skip to content

Instantly share code, notes, and snippets.

@zo0m
Created February 7, 2017 14:12
Show Gist options
  • Save zo0m/d02f209d704bc5d9dff15ded754fc20a to your computer and use it in GitHub Desktop.
Save zo0m/d02f209d704bc5d9dff15ded754fc20a to your computer and use it in GitHub Desktop.
logAndDif
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