Variable for Event Fire

I have to do a solution for a event which fires at every 500 millisecond. I need a solution which i can use to check if the function has run once for a purticular day. If i use a static variable it becomes out of scope and as such gets reinitialised every time the event executes. What can i use to solve this.

Well the function im using is rather too complex so too big to post so im gona use runReport() to refer to the function.

I basically have to auto schedule the function for a day as specified by the user. Say the user specifies thursdays at 11.00 am

So basically my question is how can I automatically run the function runReport() at the specified time and day.

The way i did it was to check which day it is then check what time it is on timer event handler. The problem with that is say i need to run at 11.05. The timer event runs every 500 millisecs. So basically what im guessing is between 11.05 and 11.06 there is alot of millisecs which means the function runReport() runs more than once.

I basically need a better way or somehow i can track if the function has already run.

The solution is to store the fact that the process ran (or is running) somewhere (database, text file, in memory) and then runReport() checks that value after it determines the time is right but before it starts actual processing.

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...