mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-28 15:46:33 +00:00
deploy: ff619de0374464108651ccd46f96a9ed0519e78b
This commit is contained in:
parent
0b9776afb8
commit
2e16cdddf6
@ -2,7 +2,7 @@
|
||||
|
||||
# libtool - Provide generalized library-building support services.
|
||||
# Generated automatically by config.status (libbacktrace) version-unused
|
||||
# Libtool was configured on host fv-az264-892:
|
||||
# Libtool was configured on host fv-az259-289:
|
||||
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
||||
#
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
||||
|
@ -1,13 +1,9 @@
|
||||
## Contains types and utilities for timestamps.
|
||||
|
||||
{.push raises: [Defect].}
|
||||
|
||||
import sqlite3_abi
|
||||
|
||||
type Timestamp* = int64
|
||||
|
||||
const TIMESTAMP_TABLE_TYPE* = "INTEGER"
|
||||
|
||||
proc getNanosecondTime*[T](timeInSeconds: T): Timestamp =
|
||||
var ns = Timestamp(timeInSeconds.int64 * 1000_000_000.int64)
|
||||
return ns
|
||||
@ -19,6 +15,3 @@ proc getMicrosecondTime*[T](timeInSeconds: T): Timestamp =
|
||||
proc getMillisecondTime*[T](timeInSeconds: T): Timestamp =
|
||||
var ms = Timestamp(timeInSeconds.int64 * 1000.int64)
|
||||
return ms
|
||||
|
||||
proc column_timestamp*(a1: ptr sqlite3_stmt, iCol: cint): int64 =
|
||||
return sqlite3_column_int64(a1, iCol)
|
Loading…
x
Reference in New Issue
Block a user