Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
LINUX系統程式設計 第二版
by
Robert Love
December 2013
Intermediate to advanced
496 pages
8h 57m
Chinese
GoTop Information, Inc.
Content preview from
LINUX系統程式設計 第二版
404
|
第十一章
如同
mktime()
,叫用
localtime()
也會叫用
tzset()
以及初始設定時區。
localtime_r()
是
否會進行此步驟並未特別指出。
difftime()
會傳回兩個
time_t
值(會被轉型成
double
)之間已過去的秒數:
#include <time.h>
double difftime (time_t time1, time_t time0);
在所有的
POSIX
系統上,
time_t
是一個算術型別,而且
difftime()
等效於下面這一列
忽略溢位偵測的減法算式:
(double) (time1 - time0)
Linux
上,因為
time_t
是一個整數型別,所以不需要轉型成
double
。然而,如果考慮到
移植性,則應該使用
difftime()
。
調整系統時鐘
壁鐘時間大而突然的跳動,會對「操作取決於絕對時間的」應用程式造成大混亂。考慮
一個
make
的例子,它會根據
Makefile
的描述建構軟體專案。
make
的每次調用並不會重
新建構整個原始碼樹;否則,在大型的軟體專案中,即使只變更了一個檔案,結果可能
要進行好幾個小時的重新建構工作。事實上,
make
會檢視原始碼檔案(例如
wolf.c
)與
目的碼檔案(
wolf.o
)最近被寫入的時間(檔案的時間戳記)。如果原始碼檔案—或者它
的任何必要條件(
prerequisites
),例如
wolf.h
—比目的碼檔案還新,
make
會重新建構該
原始碼檔案,以便更新目的碼檔案。然而,如果原始碼檔案沒有比目的碼檔案還新,則
不會採取任何行動。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
優雅的SciPy|Python科學研究的美學
Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow
成為卓越程式設計師的38項必修法則
Pete Goodliffe
深入理解運算原理|從簡單的機器到無所不能的程式
Tom Stuart
C++语言导学(原书第2版)
本贾尼 斯特劳斯特鲁普
Publisher Resources
ISBN: 9789862769812