Exemplo n.º 1
0
 /**
  * unpause the timer
  *
  * @return void
  */
 public static function unpause()
 {
     $now = self::now();
     if (!self::$start_time) {
         self::$start_time = $now;
     }
     if (!self::$pause_time) {
         self::$pause_time = $now;
     }
     self::$start_time += $now - self::$pause_time;
     self::$pause_time = 0;
 }