mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 09:26:38 +00:00
deploy: 994ac494724e636bee34ac1ddbbe0eb316cd04f9
This commit is contained in:
parent
09cf32dde0
commit
fb1be420ae
@ -19,7 +19,7 @@ suite "Message Store":
|
|||||||
|
|
||||||
t1 = getNanosecondTime(epochTime())
|
t1 = getNanosecondTime(epochTime())
|
||||||
t2 = getNanosecondTime(epochTime())
|
t2 = getNanosecondTime(epochTime())
|
||||||
t3 = getNanosecondTime(high(float64))
|
t3 = high(int64)
|
||||||
var msgs = @[
|
var msgs = @[
|
||||||
WakuMessage(payload: @[byte 1, 2, 3], contentTopic: topic, version: uint32(0), timestamp: t1),
|
WakuMessage(payload: @[byte 1, 2, 3], contentTopic: topic, version: uint32(0), timestamp: t1),
|
||||||
WakuMessage(payload: @[byte 1, 2, 3, 4], contentTopic: topic, version: uint32(1), timestamp: t2),
|
WakuMessage(payload: @[byte 1, 2, 3, 4], contentTopic: topic, version: uint32(1), timestamp: t2),
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# libtool - Provide generalized library-building support services.
|
# libtool - Provide generalized library-building support services.
|
||||||
# Generated automatically by config.status (libbacktrace) version-unused
|
# Generated automatically by config.status (libbacktrace) version-unused
|
||||||
# Libtool was configured on host fv-az457-433:
|
# Libtool was configured on host fv-az173-167:
|
||||||
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
||||||
#
|
#
|
||||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
||||||
|
@ -9,15 +9,15 @@ type Timestamp* = int64
|
|||||||
const TIMESTAMP_TABLE_TYPE* = "INTEGER"
|
const TIMESTAMP_TABLE_TYPE* = "INTEGER"
|
||||||
|
|
||||||
proc getNanosecondTime*[T](timeInSeconds: T): Timestamp =
|
proc getNanosecondTime*[T](timeInSeconds: T): Timestamp =
|
||||||
var ns = Timestamp(timeInSeconds*1000_000_000)
|
var ns = Timestamp(timeInSeconds.int64 * 1000_000_000.int64)
|
||||||
return ns
|
return ns
|
||||||
|
|
||||||
proc getMicrosecondTime*[T](timeInSeconds: T): Timestamp =
|
proc getMicrosecondTime*[T](timeInSeconds: T): Timestamp =
|
||||||
var us = Timestamp(timeInSeconds*1000_000)
|
var us = Timestamp(timeInSeconds.int64 * 1000_000.int64)
|
||||||
return us
|
return us
|
||||||
|
|
||||||
proc getMillisecondTime*[T](timeInSeconds: T): Timestamp =
|
proc getMillisecondTime*[T](timeInSeconds: T): Timestamp =
|
||||||
var ms = Timestamp(timeInSeconds*1000)
|
var ms = Timestamp(timeInSeconds.int64 * 1000.int64)
|
||||||
return ms
|
return ms
|
||||||
|
|
||||||
proc column_timestamp*(a1: ptr sqlite3_stmt, iCol: cint): int64 =
|
proc column_timestamp*(a1: ptr sqlite3_stmt, iCol: cint): int64 =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user