Last change
on this file was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
609 bytes
|
Line | |
---|
1 | #include "../include/Sim2OS.h" |
---|
2 | |
---|
3 | namespace environment { |
---|
4 | namespace sim2os { |
---|
5 | |
---|
6 | void * Sim2OS::service_clock (void) |
---|
7 | { |
---|
8 | if (have_all_arguments(0) == false) |
---|
9 | { |
---|
10 | std::cerr << "<" << name << "> Usage : clock_t clock();" << std::endl; |
---|
11 | return NULL; |
---|
12 | } |
---|
13 | |
---|
14 | void * result = (void *) nb_cycle; |
---|
15 | error = 0; |
---|
16 | |
---|
17 | std::cout << "\n\t***** service : clock *****" << std::endl; |
---|
18 | std::cout << "\tresult : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl; |
---|
19 | std::cout << "\terrno : " << error << std::endl; |
---|
20 | |
---|
21 | return result; |
---|
22 | } |
---|
23 | |
---|
24 | }; |
---|
25 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.