Line | |
---|
1 | #ifndef SERVICE_CLOCK_H |
---|
2 | #define SERVICE_CLOCK_H |
---|
3 | |
---|
4 | #include "../sim2os.h" |
---|
5 | |
---|
6 | namespace hierarchy_memory { |
---|
7 | namespace sim2os { |
---|
8 | |
---|
9 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[ service_clock ]~~~~~ |
---|
10 | void * |
---|
11 | Sim2os :: |
---|
12 | service_clock () |
---|
13 | { |
---|
14 | if (have_all_arguments(0) == false) |
---|
15 | { |
---|
16 | cerr << "<" << NAME << "> Usage : clock_t clock();" << endl; |
---|
17 | return NULL; |
---|
18 | } |
---|
19 | |
---|
20 | void * result = (void *) nb_cycle; |
---|
21 | error = 0; |
---|
22 | |
---|
23 | cout << "\n\t***** service : clock *****" << endl; |
---|
24 | cout << "\tresult : " << (unsigned int) result << endl; |
---|
25 | cout << "\terrno : " << (unsigned int) error << endl; |
---|
26 | |
---|
27 | return result; |
---|
28 | } |
---|
29 | };}; |
---|
30 | #endif //SERVICE_CLOCK_H |
---|
Note: See
TracBrowser
for help on using the repository browser.