Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Willers
KWSys
Commits
9d46c94a
Commit
9d46c94a
authored
20 years ago
by
Andy Cedilnik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Add a delay method
parent
ea662820
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SystemTools.cxx
+9
-0
9 additions, 0 deletions
SystemTools.cxx
SystemTools.hxx.in
+3
-0
3 additions, 0 deletions
SystemTools.hxx.in
with
12 additions
and
0 deletions
SystemTools.cxx
+
9
−
0
View file @
9d46c94a
...
...
@@ -2100,6 +2100,15 @@ kwsys_stl::string SystemTools::FileExistsInParentDirectories(const char* fname,
return
""
;
}
void
SystemTools
::
Delay
(
unsigned
int
msec
)
{
#ifdef _WIN32
Sleep
(
msec
);
#else
usleep
(
msec
*
1000
);
#endif
}
// These must NOT be initialized. Default initialization to zero is
// necessary.
unsigned
int
SystemToolsManagerCount
;
...
...
This diff is collapsed.
Click to expand it.
SystemTools.hxx.in
+
3
−
0
View file @
9d46c94a
...
...
@@ -338,6 +338,9 @@ public:
static kwsys_stl::string FileExistsInParentDirectories(const char* fname,
const char* directory, const char* toplevel);
/** Delay the execution for a specified amount of time specified in miliseconds */
static void Delay(unsigned int msec);
protected:
// these two functions can be called from ConvertToOutputPath
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment