Plugin Directory

Changeset 1603560


Ignore:
Timestamp:
02/25/2017 06:15:23 PM (9 years ago)
Author:
nikdo
Message:

Move version 2 from trunk to branch

Location:
react-webcam/branches/v2
Files:
1 added
6 moved

Legend:

Unmodified
Added
Removed
  • react-webcam/branches/v2/react-webcam.php

    r1603559 r1603560  
    7575function get_history() {
    7676
     77    $startall = microtime(true);
    7778    create_thumbs_dir();
    7879
     80    $start = microtime(true);
    7981    $all_images = get_all_images();
     82    $time_elapsed_secs = microtime(true) - $start;
     83    //echo "get_all_images: " . $time_elapsed_secs . "\n";
    8084    $last_image_date =  parse_date(basename($all_images[0]));
    8185
     
    8993            array_push($history, $record);
    9094        }
    91        
     95
    9296    }
     97    $time_elapsed_secs_all = microtime(true) - $startall;
     98    //echo "get_history: " . $time_elapsed_secs_all . "\n";
    9399    return $history;
    94100
     
    98104// Renders JSON describing history.
    99105function render_history_json() {
     106    $start = microtime(true);
    100107    header('Content-Type: application/json');
    101108    echo json_encode(get_history());
     109    //echo "\nrender_history_json: " . (microtime(true) - $start) . "\n";
    102110    wp_die();
    103111}
     
    146154            3,
    147155            get_images_dir_path() . 'expiration.log'
    148         ); 
     156        );
    149157    }
    150158}
Note: See TracChangeset for help on using the changeset viewer.