Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
10ea4bce
Commit
10ea4bce
authored
Sep 01, 1997
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added GetTicks() here, so profiling can use a decent timer
parent
5b081e76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Mac/Modules/macosmodule.c
Mac/Modules/macosmodule.c
+9
-0
No files found.
Mac/Modules/macosmodule.c
View file @
10ea4bce
...
...
@@ -601,6 +601,14 @@ MacOS_DebugStr(PyObject *self, PyObject *args)
return
Py_None
;
}
static
char
GetTicks_doc
[]
=
"Return number of ticks since bootup"
;
static
PyObject
*
MacOS_GetTicks
(
PyObject
*
self
,
PyObject
*
args
)
{
return
Py_BuildValue
(
"i"
,
(
int
)
LMGetTicks
());
}
static
char
openrf_doc
[]
=
"Open resource fork of a file"
;
static
PyObject
*
...
...
@@ -676,6 +684,7 @@ static PyMethodDef MacOS_Methods[] = {
{
"openrf"
,
MacOS_openrf
,
1
,
openrf_doc
},
{
"splash"
,
MacOS_splash
,
1
,
splash_doc
},
{
"DebugStr"
,
MacOS_DebugStr
,
1
,
DebugStr_doc
},
{
"GetTicks"
,
MacOS_GetTicks
,
1
,
GetTicks_doc
},
{
NULL
,
NULL
}
/* Sentinel */
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment