Skip to content

Instantly share code, notes, and snippets.

@erikkaplun
Created October 10, 2018 09:04
Show Gist options
  • Save erikkaplun/552699ab99f110962716b3608be60f2a to your computer and use it in GitHub Desktop.
Save erikkaplun/552699ab99f110962716b3608be60f2a to your computer and use it in GitHub Desktop.
PrizeMiniRouter created by eallik - https://repl.it/@eallik/PrizeMiniRouter
import Data.Time.Clock.POSIX (getPOSIXTime)
timeNanos, timeMicros, timeMillis :: IO Integer
t x = round . (x * ) <$> getPOSIXTime
timeNanos = t 1000000000
timeMicros = t 1000000
timeMillis = t 1000
main :: IO ()
main = do
tNanos <- timeNanos
tMicros <- timeMicros
tMillis <- timeMillis
print tNanos
print tMicros
print tMillis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment