I am writing some code for a *C2000 microcontroller*, and I am trying to time certain segments of my code using `time.h`. However, when i enter this code:

```
clock_t begin = clock();

```

It sends back a bunch of errors. Including one that says: `error: function call is not allowed in a constant expression`. But I don't believe it is a constant expression. 

Does anyone have an idea what might be going on here?

Further errors include:

> 
> --output\_all\_syms --cdebug\_asm\_data --preproc\_with\_compile -- preproc\_dependency="Example\_2802xAdcTempSensor.pp" "../Example\_2802xAdcTempSensor.c"
>  "../Example\_2802xAdcTempSensor.c", line 155: error: expected a "}"
>  clock\_t start = clock();
> 
> 
> "../Example\_2802xAdcTempSensor.c", line 155: error: function call is not
>  allowed in a constant expression
>  clock\_t start = clock();
>  ^
> 
> 
> 

Thanks in advance.