Useing the SparkCorePolledTimer with photon

hello.
am using photon and i cant use the simpletimer
so as i read in the documents that i have to use the SparkCorePolledTimer.
but my q is
this code is for arduino ,so am gunna replace the simpletimer with SparkCorePolledTimer,what about the
timer.setInterval(3000, CheckButton); // check button state every 3 second?? and
timer.run();>???
do i need to change them also to make it work ???
what should i write instead of them ??
thank u

// add all the normal Blynk stuff depending on your hardware setup

#include <SimpleTimer.h>
SimpleTimer timer;

byte val = 0; // variable to store the button status
byte buttonD5 = 5; // button / switch on digital pin 5
byte led = 2; // the pin that the LED is atteched to, digital pin 2

void setup() {
pinMode(led, OUTPUT); // initalize LED as an output
pinMode(buttonD5, INPUT); // initialize button / switch as an input
timer.setInterval(3000, CheckButton); // check button state every 3 second
}

void CheckButton(){ // done every 3 seconds
byte val = digitalRead(buttonD5); // read button value
if (val == HIGH) { // check if the sensor is HIGH
Blynk.virtualWrite(V3, 255); // turn app LED on V3 ON
}
else {
Blynk.virtualWrite(V3, 0); // turn app LED on V3 OFF
}
}

void loop() {
Blynk.run(); // need all the regular Blynk stuff in definitions and setup
timer.run();
}

please edit your post, using the code formatting button, so we can see your code.

// add all the normal Blynk stuff depending on your hardware setup

#include <SimpleTimer.h>
SimpleTimer timer;

byte val = 0;             // variable to store the button status
byte buttonD5 = 5;        // button / switch on digital pin 5
byte led = 2;             // the pin that the LED is atteched to, digital pin 2

void setup() {
  pinMode(led, OUTPUT);      // initalize LED as an output
  pinMode(buttonD5, INPUT);    // initialize button / switch as an input
  timer.setInterval(3000,  CheckButton);  // check button state every 3 second
}

void CheckButton(){    // done every 3 seconds
  byte val = digitalRead(buttonD5);   // read button value
  if (val == HIGH) {           // check if the sensor is HIGH
    Blynk.virtualWrite(V3, 255);  // turn app LED on V3 ON
  } 
  else {
        Blynk.virtualWrite(V3, 0);  // turn app LED on V3 OFF
  }  
}

void loop() {
  Blynk.run();   // need all the regular Blynk stuff in definitions and setup
  timer.run();
}`indent preformatted text by 4 spaces`