4 ms·
How common are get time calls so that they would actually be an issue? I've worked on quite a few systems and can't think of a time where an api for getting th
by teddyuk 10y ago
How common are get time calls so that they would actually be an issue?
I've worked on quite a few systems and can't think of a time where an api for getting the time would have been called so much that it would affect performance?
- jankedeen 10y agoAny application code that includes logging of any sort is going to grab time. All of my code (quite a private set and scientific in nature) calls time() at critical points with identifiers so I can easily investigate issues.
- tyingq 10y agoTimestamped logs, transaction timeouts, http keepalive timeouts, cache expiration/eviction, etc. Apache and nginx for example, both call gettimeofday() a lot. Edit: Quick google searches indicate software like redis and memcached also call it quite often.
- Anderkent 10y agoSo does cassandra.