Changeset 1603560
- Timestamp:
- 02/25/2017 06:15:23 PM (9 years ago)
- Location:
- react-webcam/branches/v2
- Files:
-
- 1 added
- 6 moved
-
. (added)
-
configurable.php (moved) (moved from react-webcam/trunk/configurable.php)
-
css (moved) (moved from react-webcam/trunk/css)
-
img (moved) (moved from react-webcam/trunk/img)
-
js (moved) (moved from react-webcam/trunk/js)
-
react-webcam.php (moved) (moved from react-webcam/trunk/react-webcam.php) (4 diffs)
-
readme.txt (moved) (moved from react-webcam/trunk/readme.txt)
Legend:
- Unmodified
- Added
- Removed
-
react-webcam/branches/v2/react-webcam.php
r1603559 r1603560 75 75 function get_history() { 76 76 77 $startall = microtime(true); 77 78 create_thumbs_dir(); 78 79 80 $start = microtime(true); 79 81 $all_images = get_all_images(); 82 $time_elapsed_secs = microtime(true) - $start; 83 //echo "get_all_images: " . $time_elapsed_secs . "\n"; 80 84 $last_image_date = parse_date(basename($all_images[0])); 81 85 … … 89 93 array_push($history, $record); 90 94 } 91 95 92 96 } 97 $time_elapsed_secs_all = microtime(true) - $startall; 98 //echo "get_history: " . $time_elapsed_secs_all . "\n"; 93 99 return $history; 94 100 … … 98 104 // Renders JSON describing history. 99 105 function render_history_json() { 106 $start = microtime(true); 100 107 header('Content-Type: application/json'); 101 108 echo json_encode(get_history()); 109 //echo "\nrender_history_json: " . (microtime(true) - $start) . "\n"; 102 110 wp_die(); 103 111 } … … 146 154 3, 147 155 get_images_dir_path() . 'expiration.log' 148 ); 156 ); 149 157 } 150 158 }
Note: See TracChangeset
for help on using the changeset viewer.