Last change
on this file was
114,
checked in by rosiere, 16 years ago
|
1) Fix bug with previous commit
2) Add test libc
3) Change Dhrystone
|
-
Property svn:keywords set to
Id
|
File size:
838 bytes
|
Line | |
---|
1 | // $Id: main.c 114 2009-04-16 22:35:37Z rosiere $ |
---|
2 | |
---|
3 | //=====[ main ]================================================================= |
---|
4 | /* |
---|
5 | * All thread execute this routine |
---|
6 | * Initialize the thread and attribute a Workload at each thread |
---|
7 | */ |
---|
8 | |
---|
9 | #include <time.h> |
---|
10 | #include <stdlib.h> |
---|
11 | #include <stdio.h> |
---|
12 | #include <unistd.h> |
---|
13 | #include <string.h> |
---|
14 | |
---|
15 | int main() |
---|
16 | { |
---|
17 | unsigned int date_old = 0; |
---|
18 | unsigned int date_new; |
---|
19 | |
---|
20 | date_new = my_times(); fprintf(stdout,"nb_cycle : %d\n" ,date_new ); date_old = date_new; |
---|
21 | date_new = my_times(); fprintf(stdout,"nb_cycle : %d %d\n",date_new,date_new-date_old); date_old = date_new; |
---|
22 | date_new = my_times(); fprintf(stdout,"nb_cycle : %d %d\n",date_new,date_new-date_old); date_old = date_new; |
---|
23 | date_new = my_times(); fprintf(stdout,"nb_cycle : %d %d\n",date_new,date_new-date_old); date_old = date_new; |
---|
24 | |
---|
25 | exit (0); |
---|
26 | |
---|
27 | while (1); |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.