当前位置: 首页>>代码示例>>PHP>>正文


PHP benchmark_timing函数代码示例

本文整理汇总了PHP中benchmark_timing函数的典型用法代码示例。如果您正苦于以下问题:PHP benchmark_timing函数的具体用法?PHP benchmark_timing怎么用?PHP benchmark_timing使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了benchmark_timing函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: set_treatment_exp

            break;
        case 'prior_treatment_response':
            $debug = false;
            ?>
			<script type="text/javascript">
				$(document).ready(function () {
					console.log('blah');
					$("div#reqPopup").html("blah");
				});
			</script>
			<?php 
            set_treatment_exp($record, $debug);
            if ($debug) {
                $timer['main_end'] = microtime(true);
                error_log(benchmark_timing($timer));
            }
            break;
            /**
             * all other forms do nothing
             */
        /**
         * all other forms do nothing
         */
        default:
            if ($debug) {
                $timer['main_end'] = microtime(true);
                error_log("CASE DEFAULT" . benchmark_timing($timer));
            }
            break;
    }
}
开发者ID:hcv-target,项目名称:redcap_hooks,代码行数:31,代码来源:redcap_save_record.php

示例2: Project

 * project metadata
 */
$project = new Project();
$first_event_id = $project->firstEventId;
$plugin_title = "Derive INDCMODF, INDCOD and INDCSYS for all CMINDC";
/**
 * plugin
 */
echo "<h3>$plugin_title</h3>";
/**
 * MAIN
 */
if ($debug) {
	$timer['main_start'] = microtime(true);
}
$fields = array('cm_cmindc', 'cm_oth_cmindc', 'cm_suppcm_indcmodf', 'cm_suppcm_indcod', 'cm_suppcm_indcsys');
$data = REDCap::getData('array', $subjects, $fields);
foreach ($data AS $subject_id => $subject) {
    foreach ($subject AS $event_id => $event) {
	    if ($event['cm_cmindc'] != '') {
		    code_llt($project_id, $subject_id, $event_id, fix_case($event['cm_cmindc']), fix_case($event['cm_oth_cmindc']), $event['cm_suppcm_indcmodf'], 'cm_suppcm_indcmodf', $debug, $recode_llt);
		    code_pt($project_id, $subject_id, $event_id, get_single_field($subject_id, $project_id, $event_id, "cm_suppcm_indcmodf", ''), $event["cm_suppcm_indcod"], "cm_suppcm_indcod", $debug, $recode_pt);
		    code_bodsys($project_id, $subject_id, $event_id, get_single_field($subject_id, $project_id, $event_id, "cm_suppcm_indcod", ''), $event["cm_suppcm_indcsys"], "cm_suppcm_indcsys", $debug, $recode_soc);
	    }
    }
}
if ($debug) {
	$timer['main_end'] = microtime(true);
	$init_time = benchmark_timing($timer);
	echo $init_time;
}
开发者ID:hcv-target,项目名称:redcap_plugins,代码行数:31,代码来源:derive_cmindc_coding.php

示例3: set_cirrhosis

        case 'fibrosis_staging':
        case 'cirrhosis':
            set_cirrhosis($record, $debug);
            break;
        case 'prior_treatment_response':
            Prioritize::set_treatment_exp($record, $debug);
            break;
        case 'derived_values_baseline':
            Prioritize::set_tx_data($record, $debug);
            break;
            /**
             * all other forms do nothing
             */
        /**
         * all other forms do nothing
         */
        default:
            break;
    }
    /**
     * Determine completeness of baseline, week4, eot, eot1year and eot3year surveys and record state.
     * this has to run on every form save to capture the passage of time. you can't
     */
    if (in_array($redcap_event_name, array_keys($arms)) && $instrument != 'survey_completion') {
        Prioritize::set_survey_completion($record, $debug);
    }
}
if ($debug) {
    $timer['main_end'] = microtime(true);
    error_log(benchmark_timing($timer));
}
开发者ID:hcv-target,项目名称:redcap_hooks,代码行数:31,代码来源:redcap_save_record.php


注:本文中的benchmark_timing函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。