fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <stdio.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <stdlib.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <time.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include "isns_server.h"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include "isns_cache.h"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include "isns_obj.h"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include "isns_log.h"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifndef TARGET_DATA_STORE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TARGET_DATA_STORE xml
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TARGET_src(TARGET) XTARGET_src(TARGET)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define XTARGET_src(TARGET) XXTARGET_src(TARGET/data.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define XXTARGET_src(TARGET) #TARGET
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include TARGET_src(TARGET_DATA_STORE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define TARGET_func(func) XTARGET_func(TARGET_DATA_STORE, func)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define XTARGET_func(TARGET, func) XXTARGET_func(TARGET, func)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define XXTARGET_func(TARGET, func) TARGET ## func
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortestatic time_t total_time = 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortestatic clock_t total_clock = 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern int verbose_tc;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarget_init_data(
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (TARGET_func(_init_data)());
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarget_load_obj(
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte void **p,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte isns_obj_t **objp,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte uchar_t *phase
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (TARGET_func(_load_obj)(p, objp, phase));
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarget_add_obj(
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte const isns_obj_t *obj
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int status;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte time_t t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte clock_t c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte status = TARGET_func(_add_obj)(obj);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL) - t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock() - c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time += t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_clock += c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte printf("time %d clock %.4lf -adding one object\n",
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t, c / (double)CLOCKS_PER_SEC);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (status);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarget_modify_obj(
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte const isns_obj_t *obj
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int status;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte time_t t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte clock_t c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte status = TARGET_func(_modify_obj)(obj);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL) - t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock() - c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time += t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_clock += c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte printf("time %d clock %.4lf -updating one object\n",
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t, c / (double)CLOCKS_PER_SEC);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (status);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarget_delete_obj(
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte const isns_obj_t *obj
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int status;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte time_t t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte clock_t c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte status = TARGET_func(_delete_obj)(obj);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL) - t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock() - c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time += t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_clock += c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte printf("time %d clock %.4lf -deleting one object\n",
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t, c / (double)CLOCKS_PER_SEC);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (status);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarget_delete_assoc(
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte const isns_obj_t *obj
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int status;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte time_t t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte clock_t c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte status = TARGET_func(_delete_assoc)(obj);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL) - t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock() - c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time += t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_clock += c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte printf("time %d clock %.4lf -deleting one membership\n",
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t, c / (double)CLOCKS_PER_SEC);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (status);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarget_update_commit(
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int status;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte time_t t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte clock_t c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte status = TARGET_func(_update_commit)();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL) - t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock() - c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time += t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_clock += c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte printf("time %d clock %.4lf -flushing the data\n",
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t, c / (double)CLOCKS_PER_SEC);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte printf("time %d clock %.4lf -total update\n",
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time, total_clock / (double)CLOCKS_PER_SEC);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time = 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_clock = 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (status);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetarget_update_retreat(
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte int status;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte time_t t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte clock_t c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte status = TARGET_func(_update_retreat)();
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef DEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (verbose_tc != 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t = time(NULL) - t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c = clock() - c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time += t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_clock += c;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte printf("time %d clock %.4lf -flushing the data\n",
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte t, c / (double)CLOCKS_PER_SEC);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte printf("time %d clock %.4lf -total update\n",
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time, total_clock / (double)CLOCKS_PER_SEC);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_time = 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte total_clock = 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (status);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}