diff options
Diffstat (limited to 'cpp/demo/Ice/hello/HelloI.cpp')
-rw-r--r-- | cpp/demo/Ice/hello/HelloI.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/demo/Ice/hello/HelloI.cpp b/cpp/demo/Ice/hello/HelloI.cpp index ddac03f9762..aa74095dc0a 100644 --- a/cpp/demo/Ice/hello/HelloI.cpp +++ b/cpp/demo/Ice/hello/HelloI.cpp @@ -13,8 +13,12 @@ using namespace std; void -HelloI::sayHello(const Ice::Current&) const +HelloI::sayHello(int delay, const Ice::Current&) const { + if(delay != 0) + { + IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(delay)); + } cout << "Hello World!" << endl; } |