# Using timer on target localhost

**URL:** <https://forum.legato.io/t/using-timer-on-target-localhost/4555>\
**Category:** Legato Application Framework\
**Created:** [July 12, 2019, 5:46am UTC](https://forum.legato.io/t/using-timer-on-target-localhost/4555 "2019-07-12T05:46:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.opoka](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@m.opoka](https://forum.legato.io/u/m.opoka)\
**Post date:** [July 12, 2019, 5:46am UTC](https://forum.legato.io/t/using-timer-on-target-localhost/4555/1 "2019-07-12T05:46:11Z")

</div>

I compiled legato for localhost I can compile “helloWorld” and run it on localhost.  
However using timers does not seem to work.  
timer.c fa\_timer\_Init() 173 | Using CLOCK\_BOOTTIME: alarm wakeups not supported.

The initialization code works, but the timer handler is not executed.

Does anyone know how to make legato timers work on localhost?

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [March 5, 2020, 9:26am UTC](https://forum.legato.io/t/using-timer-on-target-localhost/4555/2 "2020-03-05T09:26:33Z")

</div>

By default Legato timers are alarm timers (they can wake up the system from suspend sleep mode).

ARM targets (e.g. WP76 or WP77 modules) support this type of timers.

But if your localhost doesn’t support alarm timers then you can add the following line prior to start your timer:  
`res = le_timer_SetWakeup(timerRef, false);`

See Legato doc for details: [le\_timer\_SetWakeup()](https://docs.legato.io/19_11/le__timer_8h.html#a1fa3f608038fabf828677beb66cdd6ef)
