Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2004-04-25 00:04:37 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2004-04-25 00:04:37 +0400
commit382297b68753b1d17d6e57846206d086fde251b0 (patch)
tree3aec01ecd44aed5a2376f3311791d63d560e9dbb /source/blender/python/api2_2x/doc/Sys.py
parente5e4c0fc4fc06228523993e088b7e2bdc8a60a47 (diff)
BPython:
- New module + doc: Blender.Library: It's like File->Append, loads datablocks from .blend files. - small updates to fix warnings and accomodate for the new module, in readfile.[ch] - New Blender.sys module function: time, a wrapper of the PIL get time function. - Updated original makefile and scons builds.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Sys.py')
-rw-r--r--source/blender/python/api2_2x/doc/Sys.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/Sys.py b/source/blender/python/api2_2x/doc/Sys.py
index e212784d33c..d488c8a1f65 100644
--- a/source/blender/python/api2_2x/doc/Sys.py
+++ b/source/blender/python/api2_2x/doc/Sys.py
@@ -6,6 +6,8 @@ The Blender.sys submodule.
sys
===
+B{New}: L{time}
+
This module provides a minimal set of helper functions and data. Its purpose
is to avoid the need for the standard Python module 'os', in special 'os.path',
though it is only meant for the simplest cases.
@@ -63,3 +65,11 @@ def splitext (path):
@rtype: list with two strings
@return: (root, ext)
"""
+
+def time ():
+ """
+ Get the current time in seconds since a fixed value. Successive calls to
+ this function are garanteed to return values greater than the previous call.
+ @rtype: float
+ @return: the elapsed time in seconds.
+ """