Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
pikelang
pike
Commits
f26b9b9d
Commit
f26b9b9d
authored
22 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Moved some documentation to where it belongs...
Rev: lib/modules/System.pmod:1.7
parent
da9069fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/System.pmod
+1
-57
1 addition, 57 deletions
lib/modules/System.pmod
with
1 addition
and
57 deletions
lib/modules/System.pmod
+
1
−
57
View file @
f26b9b9d
#pike __REAL_VERSION__
#pike __REAL_VERSION__
// $Id: System.pmod,v 1.
6
2002/
03
/2
0
1
6:39:52 nilsson
Exp $
// $Id: System.pmod,v 1.
7
2002/
11
/2
6
1
4:51:09 grubba
Exp $
// this module is to allow the system module to be called system.
// this module is to allow the system module to be called system.
inherit _system;
inherit _system;
constant Timer = __builtin.Timer;
constant Timer = __builtin.Timer;
constant Time = __builtin.Time;
constant Time = __builtin.Time;
//! @class Timer
//! @decl static void create( int|void fast )
//! Create a new timer object. The timer keeps track of relative time
//! with sub-second precision.
//!
//! If fast is specified, the timer will not do system calls to get
//! the current time but instead use the one maintained by pike. This
//! will result in faster but somewhat more inexact timekeeping.
//! Also, if your program never utilizes the pike event loop the pike
//! maintained current time never change.
//! @decl float get()
//! Return the time in seconds since the last time get was called.
//! The first time this method is called the time since the object
//! was created is returned instead.
//! @decl float peek()
//! Return the time in seconds since the last time @[get] was called.
//! @endclass
//! @class Time
//!
//! The current time as a structure containing a sec and a usec
//! member.
//! @decl static void create( int fast );
//!
//! If fast is true, do not request a new time from the system,
//! instead use the global current time variable.
//!
//! This will only work in callbacks, but can save significant amounts
//! of CPU.
//! @decl int sec;
//! @decl int usec;
//!
//! The number of seconds and microseconds since the epoch and the
//! last whole second, respectively. (See also @[efun::time()])
//!
//! Please note that these variables will continually update when
//! they are requested, there is no need to create new Time()
//! objects.
//! @decl int usec_full;
//!
//! The number of microseconds since the epoch. Please note that
//! pike has to have been compiled with bignum support for this
//! variable to contain sensible values.
//! @endclass
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