cengal.time_management.load_best_timer.versions.v_0.load_best_timer

 1#!/usr/bin/env python
 2# coding=utf-8
 3
 4# Copyright © 2012-2024 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>
 5# 
 6# Licensed under the Apache License, Version 2.0 (the "License");
 7# you may not use this file except in compliance with the License.
 8# You may obtain a copy of the License at
 9# 
10#     http://www.apache.org/licenses/LICENSE-2.0
11# 
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18try:
19    import cengal.time_management.cpu_clock as cpu_clock_module
20    if cpu_clock_module.CPU_TICKS_PER_SECOND:
21        from cengal.time_management.cpu_clock_cycles.versions.v_0.compilable.cpu_clock_cycles__cython import perf_counter
22    else:
23        from time import perf_counter
24except ImportError:
25    try:
26        from time import perf_counter
27    except ImportError:
28        try:
29            from time import clock
30            perf_counter = clock
31        except ImportError:
32            pass
33
34try:
35    from time import process_time
36except ImportError:
37    try:
38        from time import clock
39        perf_counter = clock
40    except ImportError:
41        pass
42
43
44"""
45Module Docstring
46Docstrings: http://www.python.org/dev/peps/pep-0257/
47"""
48
49__author__ = "ButenkoMS <gtalk@butenkoms.space>"
50__copyright__ = "Copyright © 2012-2024 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>"
51__credits__ = ["ButenkoMS <gtalk@butenkoms.space>", ]
52__license__ = "Apache License, Version 2.0"
53__version__ = "4.4.1"
54__maintainer__ = "ButenkoMS <gtalk@butenkoms.space>"
55__email__ = "gtalk@butenkoms.space"
56# __status__ = "Prototype"
57__status__ = "Development"
58# __status__ = "Production"