Storage of the "micros" function in a variable

Hello i was working in a project and i was wondering how to storage that function.

I've been trying with:

unsigned long var = micros;

but when i verify the project it tells me:

invalid conversion from 'long unsigned int (*)()' to 'long unsigned int'

So, how can I storage this function whithout problems?

Excuse my english please xD

I am not sure what you are trying to do but there is no concept of storing a function in a variable in the C language. Do you mean a macro? In which case you can hash define it.

I assume he means storing the result of a call to micros(), in which case that's described here using a variable named time.

Your English is fine. Your programming, not so much. If you want the value of micros, you do it like this...

   unsigned long var = micros();

JimboZA:
I assume he means storing the result of a call to micros(), in which case that's described here using a variable named time.

Yeah I notice now my error, I wrote micros when actually I want to use the function micros().

Thx!

In which case you do not want to store the function in a variable you want to store the number that a function returns.

Grumpy_Mike:
In which case you do not want to store the function in a variable you want to store the number that a function returns.

Yeah! That was that I tried to do! Thx to all of you guys!