Changeset 2290


Ignore:
Timestamp:
Aug 21, 2005, 12:32:05 AM (20 years ago)
Author:
bird
Message:

time the fork.

Location:
trunk/src/libctests/libc/smoketests
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/libctests/libc/smoketests/fork-1.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r2289 r2290  
    3434#include <errno.h>
    3535#include <sys/wait.h>
     36#include <sys/time.h>
    3637
    3738/*******************************************************************************
     
    4142static unsigned s_cChildren = 0;
    4243static int s_cErrors = 0;
     44
     45/*char ach[1024*1024*8] = {0}; - test memcpy */
    4346
    4447static void reap(void)
     
    7679{
    7780    int i;
     81    hrtime_t StartTime = gethrtime();
    7882    for (i = 0; i < 2000; i++)
    7983    {
     
    111115        }
    112116    }
     117    hrtime_t Elapsed = gethrtime() - StartTime;
     118    printf("fork-1: Elapsed: %lld (%llx)\n", (long long)Elapsed, (long long)Elapsed);
    113119
    114120    /*
Note: See TracChangeset for help on using the changeset viewer.