summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/hello/HelloI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/demo/IceE/hello/HelloI.cpp')
-rw-r--r--cppe/demo/IceE/hello/HelloI.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cppe/demo/IceE/hello/HelloI.cpp b/cppe/demo/IceE/hello/HelloI.cpp
index 8205a60bae8..02e99d37271 100644
--- a/cppe/demo/IceE/hello/HelloI.cpp
+++ b/cppe/demo/IceE/hello/HelloI.cpp
@@ -7,14 +7,18 @@
//
// **********************************************************************
-#include <IceE/IceE.h>
#include <HelloI.h>
+#include <IceE/IceE.h>
using namespace std;
void
-HelloI::sayHello(const Ice::Current& c) const
+HelloI::sayHello(int delay, const Ice::Current&) const
{
+ if(delay != 0)
+ {
+ IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(delay));
+ }
printf("Hello World!\n");
}