# TimerTicksPerSecond

Get and set number of timer ticks per second

## Syntax

```timerTicksPerSecVal = myExecutionProfile.TimerTicksPerSecond myExecutionProfile.TimerTicksPerSecond = timerTicksPerSecVal ```

## Description

`timerTicksPerSecVal = myExecutionProfile.TimerTicksPerSecond` returns the number of timer ticks per second. For example, if the timer runs at 1 MHz, then the number of ticks per second is 106.

```myExecutionProfile.TimerTicksPerSecond = timerTicksPerSecVal``` sets the number of timer ticks per second. Use this method if the target connectivity configuration does not specify this value.

`myExecutionProfile` is a workspace variable that you create using `getCoderExecutionProfile`.

Tip

You can calculate the execution time in seconds using the formula $ExecutionTimeInSecs=ExecutionTimeInTicks/TimerTicksPerSecond$.

## Input Arguments

 `timerTicksPerSecVal` Number of timer ticks per second

## Output Arguments

 `timerTicksPerSecVal` Number of timer ticks per second
Introduced in R2012b