problem in code of if else statement with switch to start timer in Arduino uno

i want to start timer at the time only when i press the switch Using if else Statement . but the problem is that , the Timer getting start During the time of uploading the program without pressing the Switch .
i had attached my codes here, please help me .
any help will be to much Appreciated .

int buttonState=0;
#define button A0
int now;
int now1;
int led = A2;

void setup() {

void loop() {
  buttonState = digitalRead(button);
  if(buttonState == HIGH)
    unsigned long int now = millis();
    unsigned long int now1 = now/1000;
    unsigned long int now = 0;
    unsigned long int now1 = 0;

You're creating new variables for "now" and "now1" in your "if", but then they go out of scope.
The globals have a different, wrong type.

I'm not really clear what you're trying to do.

Do you have a pulldown resistor on your button? If not you may be getting a false trigger.

But as Awol, I’m not really clear what you’re doing or what the problem is.