# \[APP\]\[Pro\] Chronograph - Adds precise timer, stopwatch and transition functionality to Homey

**URL:** <https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214>\
**Category:** Apps\
**Tags:** app, official, tools, homey-pro\
**Created:** [September 17, 2019, 5:55am UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214 "2019-09-17T05:55:42Z")\
**Posts on this page:** 1\
**Showing post:** 398

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 5, 2023, 3:56pm UTC](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214/398 "2023-01-05T15:56:25Z")

</div>

Hi @GibStorm,

Not exactly what you were looking for, but it triggered me to create a script/flow/device for that purpose.  
You can find importable flows for a [Timer](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676/57), and for a [Stopwatch](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676/58)

Flow example:

 ![Screenshot from 2023-01-05 16-27-21](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40538c72e274d82df4879e1340642b9af193986a.png)

AVD device:  
 ![Screenshot from 2023-01-05 16-53-49](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/1761c879de28c810d679811e427b3107e3baf6c6.png)

Script (_use it with Homeyscript flow card “Run code with argument, and return number-tag”_):

```auto
// Get value (milliSeconds) of a running timer; Argument = timer name.

var timerName = (args[0]);

	let app = await Homey.apps.getApp({id:'nl.fellownet.chronograph'});
	app.apiGet('/timers/').then(result => {
		let timers = JSON.parse(result);
		timers.forEach(timer => {
        if ( timer.name == timerName ) {
		      app.apiGet('/timers/' + timer.name);
					// create/update tag [timername]_duration
          global.set(timer.name + "_duration", timer.duration);
          //// just a check for timer name:
          //console.log("TimerName: " + timer.name + " - Duration: " + timer.duration);
        }
  	  });
	});	
const timerDuration = global.get(timerName + "_duration");
return Number(timerDuration); 

```

---

_[View the full topic](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214)._
