[Groonga-commit] groonga/groonga at 151c1cc [master] Add GRN_TIME_USEC_PER_SEC_F

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 5 12:18:13 JST 2018


Kouhei Sutou	2018-04-05 12:18:13 +0900 (Thu, 05 Apr 2018)

  New Revision: 151c1ccfaa51c644678c8286bb85edb948a6a68c
  https://github.com/groonga/groonga/commit/151c1ccfaa51c644678c8286bb85edb948a6a68c

  Message:
    Add GRN_TIME_USEC_PER_SEC_F

  Modified files:
    include/groonga/time.h

  Modified: include/groonga/time.h (+1 -0)
===================================================================
--- include/groonga/time.h    2018-04-05 11:52:26 +0900 (44379598e)
+++ include/groonga/time.h    2018-04-05 12:18:13 +0900 (020beef4c)
@@ -37,6 +37,7 @@ extern "C" {
 #define GRN_TIME_USEC_TO_NSEC(usec) ((usec) * GRN_TIME_NSEC_PER_USEC)
 
 #define GRN_TIME_USEC_PER_SEC 1000000
+#define GRN_TIME_USEC_PER_SEC_F 1000000.0
 #define GRN_TIME_PACK(sec, usec) ((int64_t)(sec) * GRN_TIME_USEC_PER_SEC + (usec))
 #define GRN_TIME_UNPACK(time_value, sec, usec) do {\
   sec = (time_value) / GRN_TIME_USEC_PER_SEC;\
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180405/3d588c05/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index