Recently I had a project that required me to use Unity and I liked how the deltaTime was built in. I’ve been using elapsed time in a lot of code from Flash to Phaser, but it occurred to me that developers that were moving between Unity and Phaser might be looking for a way to get the Delta or elapsed time between two different events. In this simple example, I use the “pointerdown” event to show time between clicks. You can find the blog post here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":" Recently I had a project that required me to use Unity and I liked how the deltaTime was built in. I’ve been using elapsed time in a lot of code from Flash to Phaser, but it occurred to me that developers that were moving between Unity and Phaser might be looking for a way to […]<\/p>\n","protected":false},"author":1,"featured_media":16239,"template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"edd_variable_prices":[],"_edd_bundled_products":["0"],"_edd_button_behavior":["add_to_cart"],"footnotes":""},"edd-categories":[41],"edd-tags":[],"class_list":["post-16267","download","type-download","status-publish","has-post-thumbnail","hentry","download_category-code-samples","edd-download","edd-download-cat-code-samples"],"yoast_head":"\n