Skip to content

Instantly share code, notes, and snippets.

@eby
Created August 27, 2010 13:32
Show Gist options
  • Save eby/553354 to your computer and use it in GitHub Desktop.
Save eby/553354 to your computer and use it in GitHub Desktop.
<?php
$locum_lib_dir = '/usr/local/lib/locum';
$bib = "1188529";
require_once($locum_lib_dir . '/locum-client.php');
$then = microtime();
// Data Set repair
$locum = new locum_client;
$now = microtime();
echo sprintf("Started Locum: %f", $now-$then);
$then = microtime();
$bib = $locum->get_bib_item($bib);
$now = microtime();
echo sprintf("Get Bib: %f", $now-$then);
$then = microtime();
$avail = $locum->get_item_status($bib);
$now = microtime();
echo sprintf("Get Availability: %f", $now-$then);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment